saveSettings
Description
Triggered when property settings are saved. This occurs when players modify configuration options for their properties such as access permissions, appearance settings, or functional parameters.
Payload Structure
lua
Parameters
- source (number): The server ID of the player saving the settings
- player (table): Complete player data object provided by the framework (ESX/QBCore)
- propertyId (string/number): Unique identifier for the property whose settings are being saved
- settings (table):
Usage Example
lua
Common Setting Types
- access: Player access permissions and key management
- functionality: Feature toggles and behavioral settings
- security: Security measures and protection settings
- automation: Automated systems and scheduling
Return Values
- true or nil: Allow the settings to be saved
- false: Cancel the settings save operation