Hi, as the title says I am trying to make a script that blows vehicle at 6959 object but I want the player to be warned with a text like this one
dxDrawText("Do not try to camp!", 0, 0, x, y, tocolor(255, 0, 0), 2, "pricedown", "center", "center")
but I want to add SetTimer too, because players should have time to read/ and to go back to track.
This is the script which I have tried to do.
addEventHandler("onClientVehicleCollision", getRootElement(), function(hitElement)
if source ~= getPedOccupiedVehicle(localPlayer) then return end
if getElementType(hitElement) == "object" and getElementModel(hitElement) == 6959 then
blowVehicle(source)
end
end)
The problem is I do not really know where to add the DrawText and SetTimer too
Thanks for helping me !