setInteractablePoint

Description

Triggered when an interactable point is set for a property. This occurs when players create interaction zones within their properties for various purposes.

Payload Structure

{
    source = playerId,      -- The player's server ID
    player = playerData,    -- Player data object from framework
    propertyId = propertyId,-- Property identifier
    -- Additional data specific to the interactable point
    pointData = pointData -- { id: number, name: string, label: string, interactRange: number, coords: vector3 | vector4}
}

Parameters

  • source (number): The server ID of the player setting the interaction point

  • player (table): Complete player data object provided by the framework (ESX/QBCore)

  • propertyId (string/number): Unique identifier for the property where the point is being set

  • pointData (table): { id: number, name: string, label: string, interactRange: number, coords: vector3 | vector4}

Usage Example

Return Values

  • true or nil: Allow the interaction point to be created

  • false: Cancel the interaction point creation

Last updated