mirror of
https://github.com/thegrb93/StarfallEx.git
synced 2025-03-04 03:13:09 -05:00
1
Hook Tutorial Solution
its-suun edited this page 2017-08-20 01:31:06 +02:00
--@name Hook Tutorial Solution
--@server
local i = 0
hook.add("PlayerEnteredVehicle", "print", function(ply, vehicle)
print(tostring(ply) .. " entered " .. tostring(vehicle))
i = i + 1
if i == 5 then
hook.remove("PlayerEnteredVehicle", "print")
end
end)