setInteractablePoint
Fires when an interactable point (stash, wardrobe, and so on) is created, edited or removed. Runs on the server. It runs after the key check (manage_interactable_points) and the police lockdown check.
Payload
lua
- source:
numberServer id of the player - player:
tableFramework player object of the player - propertyId:
numberThe property id - PointData:
tableThe point
PointData
When a point is removed, PointData only has id.
Example
lua
Return value
false: Cancel the change. The player sees "You are not authorized to set interactable points".- Anything else: The point is saved.