Skip to main content

Events

sf-trunks:isUsingCamera

This is prepared if you need to hook up your anticheat or something. state - true if camera is used, false if it is not used. It also indicates if player is in the trunk.

AddEventHandler("sf-trunks:isUsingCamera", function(state)
if state then
print("Player is in trunk")
else
print("Player is not in trunk")
end
end)

sf-trunks:inEditor

This is prepared if you need to know if player is addding / editing trunk. state - true if editor is used, false if it is not used.

AddEventHandler("sf-trunks:inEditor", function(state)
if state then
print("Player is in trunk editor")
else
print("Player is not in trunk editor")
end
end)