Translate the text :
Press ENTER for spawn your car
By press enter, you can choose your police car if you are on duty / in job, i want this script, if anyone can found this or recreate ? It would be useful for police, firemen and others.
Thanks,
i dont know, i think no, but i go test it later, i can’t for now
if anyone have a other suggestion you can.
Because Garages V2.1 we need buy, and there is another one look like the blue circle, to have a free bike, so i think realy is not this
Thanks MisTerioN,
RegisterNetEvent(‘policespawn’)
AddEventHandler(‘policespawn’, function()
local myPed = GetPlayerPed(-1)
local player = PlayerId (??)
local vehicle = GetHashKey(‘police2’)
RequestModel(vehicle)
while not HasModelLoaded(vehicle) do
Wait(1)
end
local plate = math.random(100, 900)
local coords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(1), 0, 5.0, 0)
local spawned_car = CreateVehicle(vehicle, coords, 454.03,-1020.87,27.30, true, false)
SetVehicleOnGroundProperly(spawned_car)
SetVehicleNumberPlateText(spawned_car, "LSPD “…plate…” ")
SetPedIntoVehicle(myPed, spawned_car, -1)
SetModelAsNoLongerNeeded(vehicle)
Citizen.InvokeNative(0xB736A491E64A32CF,Citizen.PointerValueIntInitialized(spawned_car))