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 )

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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.

Check out my recent work:

ZDay - a zombie script

Slothbot - an AI deathmatch bot

my community profile (all my resources)

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...