AddType
AddType
Types
Type ID
Type
Arguments
Argument
Description
Usage
exports['nyx2_target']:AddType(identifier, type, options)Example
exports['nyx2_target']:AddType('debug_global_vehicle', 2, {
{
title = 'Push Vehicle',
icon = 'fas fa-car',
action = function(vehicle)
-- push the vehicle
end,
canInteract = function(vehicle)
return true
end,
job = nil,
gang = nil,
citizenid = nil,
item = nil,
}
})RemoveType
Arguments
Argument
Description
Example
Last updated