Jump to content

blip


huyjvguyen

Recommended Posts

function createClientBlip() -- It creates the blip function.

createBlip(2287.10546875, 2432.3681640625, 10.8203125, 30) -- It creates the blip on the x, y, z position with the id type inserted.

end -- It ends the blip function.

addEventHandler("onClientResourceStart", getRootElement(), createClientBlip) -- We make sure the blip gets created when the resource is started.

I fixed it for you. You mistaken 'addEventhandler', you are to always put the E & H capitalized.

Also, for your meta.xml, it goes like the following:

Link to comment
function createClientBlip() -- It creates the blip function.

createBlip(2287.10546875, 2432.3681640625, 10.8203125, 30) -- It creates the blip on the x, y, z position with the id type inserted.

end -- It ends the blip function.

addEventHandler("onClientResourceStart", getRootElement(), createClientBlip) -- We make sure the blip gets created when the resource is started.

I fixed it for you. You mistaken 'addEventhandler', you are to always put the E & H capitalized.

Also, for your meta.xml, it goes like the following:

function blip() 
createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 ) 
end 
addEventhandlner("onClientResourceStart", getRootElement(), blip) 

it's not work

Link to comment
function blip() 
createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 , 0, 0 ,255 ) 
end 
addEventHandler("onClientResourceStart", root, blip) 

function blip() 
createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 , 0, 0 ,255 ) 
end 
addEventHandler("onClientResourceStart",resourceRoot, blip) 
Link to comment

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