Hi!This script spawn a armored truck that drive across the city and transport some money.
You must explod the back doors with sticky bombs(or any other ways you know) to get the money.When done you get wanted(work with AI and RP cops) .The script is now synced between players, only one amored truck will spawn for every players!!
The armored truck is now escorted, both cops and robbers are alerted with different notifications when the truck spawn.
The cops will receive clues like robbers vehicle plates and the robbing position.
You can also customise spawn/despawn time and reward in the new cfg files.
Update 8(11/27/19):esx version updated by @UpTime .I still need your feedbacks.
if IsEntityAtCoord(GetPlayerPed(-1),obj.x, obj.y, obj.z,0.30,0.30, 4.0, 0, 1, 0) == 1 then
TriggerServerEvent('give_ok:give')
DeleteObject(bag)--delete prop after pickup
despawntimer()
money = false
end
if GetEntityHealth(GetPlayerPed(-1)) == 120 then --if in coma
DeleteObject(bag)
despawntimer()
end
end
end)
Maybe add a text like “An armored Gruppe6 truck driving around the city, use a sticky bomb to steal the money!” to all players on the server? Chat message? Hint?
I see that on some bases your script is giving dirty money to everyone who creates the first account on the server
I think the problem must be even because the bag I did not find it being set in any position
and I did not find a check whether this bag really exists or not, it takes the position of that bag whether it exists or not
what is your problem? what cause he didn’t respond to your “code” comment? I mean honestly dude, sorry not trying to be rude, just don’t understand why you feel the need to post something like this…
ok but, why you coming across so rude-like is my point… that’s all I mean he did it in a way he knew, and for now, it works, I myself have cleaned the code up a little bit for use on my server because I do agree there was a lot in there that didn’t need to be, all I was saying is you don’t have to be so harsh