Jump to content

Vehicle blips like on SA-MP


simstosh

Recommended Posts

Posted
function onResourceStart()
local vehicles = getElementsByType( "vehicle" )
for k,v in ipairs(vehicles) do
createBlipAttachedTo ( v, 0, 1, 255, 255, 0, 255 )
end
end	
addEventHandler ( "onResourceStart", getRootElement(), onResourceStart )

Posted

that function by SolidSnake14 would create blips for all ehicles every time a resource starts, but not when new vehicles would be created. it could also lead to a car having 20 blips attached to it if you are running that many resources.

good thing someone made a resource already for this purpose. seriously, people would be amazed at some of the stuff thats been created.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...