Key |
Description |
Config.Url |
URL of your MDT |
Config.SecretKey |
Your service secret key, ask Knid to get it |
Config.Command |
Command to open MDT |
Config.Key |
Keyboard key to open MDT be default |
Config.AnimationEnabled |
Enable tablet animation |
Config.PropEnabled |
Enable tablet prop |
Config.IsAllowed(source, callback) |
A function that should return a boolean to allow or deny MDT opening |
Config.UserIsNotAllowed(source) |
A function called when the citizen is not allowed to open MDT |
exports['knid-mdt']:open()
exports['knid-mdt']:close()
exports['knid-mdt']:opened()
Client side events you can trigger |
mdt:client:open |
mdt:client:close |
--- @param params table
--- @param params.identifier string
--- @param params.name string
--- @param params.birthdate string optional
--- @param params.job string optional
--- @param params.phone string optional
--- @param params.state string optional
--- @param callback function
--- @return void
exports['knid-mdt']:api().people.create(params, callback)
--- @param identifier string
--- @param params table
--- @param params.name string
--- @param params.birthdate string optional
--- @param params.job string optional
--- @param params.phone string optional
--- @param params.state string optional
--- @param callback function
--- @return void
exports['knid-mdt']:api().people.update(identifier, params, callback)
--- @param identifier string
--- @param params table
--- @param params.plate string
--- @param params.model string
--- @param callback function
--- @return nil
exports['knid-mdt']:api().people.vehicles.create(identifier, params, callback)
--- @param identifier string
--- @param kind string [voiture | moto | bateau | hélicoptère | avion | PPA 0 | PPA 1 | PPA 2 | PPA 3 | PPA 4]
--- @param callback function
--- @return nil
exports['knid-mdt']:api().people.licenses.create(identifier, type, callback)
--- @param identifier string
--- @param kind string [voiture | moto | bateau | hélicoptère | avion | PPA 0 | PPA 1 | PPA 2 | PPA 3 | PPA 4]
--- @param callback function
--- @return nil
exports['knid-mdt']:api().people.licenses.delete(identifier, type, callback)
--- @param plate string
--- @param newOwner string (Should be the identifier of the new owner of the vehicle)
--- @param callback function
--- @return nil
exports['knid-mdt']:api().vehicles.update(plate, newOwner, callback)
--- @param plate string
--- @param callback function
--- @return nil
exports['knid-mdt']:api().vehicles.delete(plate, callback)
--- @param service string (Should be the name of the Service (case sensitive), ex: 'LSPD')
--- @param identifier string (Should be the DISCORD ID of the agent)
--- @param callback function
--- @return nil
exports['knid-mdt']:api().agents.service.start(identifier, service, callback)
--- @param service string (Should be the name of the Service (case sensitive), ex: 'LSPD')
--- @param identifier string (Should be the DISCORD ID of the agent)
--- @param callback function
--- @return nil
exports['knid-mdt']:api().agents.service.stop(identifier, service, callback)
--- @param service string (Should be the name of the Service (case sensitive), ex: 'LSPD')
--- @param id string (The ID of your call in your in-game dispatch system)
--- @param title string
--- @param place string
--- @param callback function
--- @return nil
exports['knid-mdt']:api().dispatch.calls.create(service, id, title, place, callback)
--- @param service string (Should be the name of the Service (case sensitive), ex: 'LSPD')
--- @param id string (The ID of your call in your in-game dispatch system)
--- @param callback function
--- @return nil
exports['knid-mdt']:api().dispatch.calls.delete(service, id, callback)
hi, where can i buy knid-mdt