Nevermind – ---------- -------
no they probs just added it to there database but im sure someone could make a script like that!
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Add this to your es_extended/server/commands.lua.
TriggerEvent('es:addGroupCommand', 'gcar', 'admin', function(source, args, user)
local target = args[1]
local xPlayer = ESX.GetPlayerFromId(target)
if not xPlayer then
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Player not online.' } })
return
end
TriggerClientEvent('esx:spawnVehicle', xPlayer.source, args[2])
end, function(source, args, user)
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Insufficient Permissions.' } })
end, {help = _U('spawn_car'), params = { {name = "id", help = 'player id'}, {name = "car", help = _U('spawn_car_param')}}})
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.