huyjvguyen Posted August 1, 2015 Share Posted August 1, 2015 client function blip() createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 ) end addEventhandlner("onClientResourceStart", root, blip) meta i can't see my blip on rada, and mini map Link to comment
Kelvin Perez Posted August 1, 2015 Share Posted August 1, 2015 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
huyjvguyen Posted August 1, 2015 Author Share Posted August 1, 2015 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
KariiiM Posted August 1, 2015 Share Posted August 1, 2015 Hey,meta is not correct, it should be like that. "me" type="script"> Link to comment
huyjvguyen Posted August 1, 2015 Author Share Posted August 1, 2015 can you give me a simple script blip. i try but all off this not work Link to comment
HUNGRY:3 Posted August 1, 2015 Share Posted August 1, 2015 function blip() createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 , 0, 0 ,255 ) end addEventHandler("onClientResourceStart", root, blip) Link to comment
iMr.Dawix~# Posted August 1, 2015 Share Posted August 1, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now