Server Exports
Here, you'll discover all the handy exports for this asset. Please take the time to read through each step and example carefully to grasp how they function. We advise against using these exports if you're not an experienced developer.
open
This export opens the MDT interface for a specific player.
exports['redutzu-mdt']:open(source)Here's how you can utilize this export:
RegisterCommand('open_mdt', function(source)
exports['redutzu-mdt']:open(source)
end, false)isAllowed
This export verifies if a player has the job necessary to open the MDT.
exports['redutzu-mdt']:isAllowed(source)Here's how you can utilize this export:
RegisterCommand('example', function(source)
local allowed = exports['redutzu-mdt']:isAllowed(source)
if allowed then
-- Do something if the player is allowed to open the MDT
end
end, false)isJobWhitelisted
This export checks if at least one job is whitelisted.
Here's how you can utilize this export:
hasPermission
This export verifies if a player has a specific permission.
Here's how you can utilize this export:
GetOfficerCallsign
This export retrieves the callsign of a player.
Here's how you can utilize this export:
SetOfficerCallsign
This export modifies the callsign of a player.
Here's how you can utilize this export:
GetOfficerStatus
This export retrieves the status of a player.
Here's how you can utilize this export:
SetOfficerStatus
This export updates the status of a player.
Here's how you can utilize this export:
IsDuty
This export indicates whether the player is on duty or not.
Here's how you can utilize this export:
SetDuty
This export modifies the duty state of a player.
Here's how you can utilize this export:
Last updated
Was this helpful?