Jump to content
You can now try the trial version of DIS2RBED for free ^_^ ×

trouble with blips


Recommended Posts

blip = rage.ui.add_blip_for_coord(922.680847, 47.205017, 81.106346) --this is line 682
rage.ui.SET_BLIP_SPRITE(blip,790)
rage.ui.SET_BLIP_COLOUR(blip,8

i'm having issue especially wit the first line. i don't know if i'm too dumb to figure this out but i always get this error 

 

runtime error | [string "..."]:682: attempt to index a nil value (field 'ui')
stack traceback:
        [string "..."]:682: in main chunk

 

 

Link to comment
Share on other sites

3 hours ago, XenonMido said:
blip = rage.ui.add_blip_for_coord(922.680847, 47.205017, 81.106346) --this is line 682
rage.ui.SET_BLIP_SPRITE(blip,790)
rage.ui.SET_BLIP_COLOUR(blip,8

i'm having issue especially wit the first line. i don't know if i'm too dumb to figure this out but i always get this error 

 

runtime error | [string "..."]:682: attempt to index a nil value (field 'ui')
stack traceback:
        [string "..."]:682: in main chunk

 

 


D2 does not have namespace UI, and all natives are written only in small letters

ui > hud

local blip = rage.hud.add_blip_for_coord(922.680847, 47.205017, 81.106346)
rage.hud.set_blip_sprite(blip, 790)
rage.hud.set_blip_colour(blip, 8)
 
Edited by MedveD
  • Thanks 1
Link to comment
Share on other sites

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
×
×
  • Create New...