Jump to content

createMarker with type "corona"


pa3ck

Recommended Posts

Hey!

I was making an indicator / blip system and I found out that coronas are buggy, because sometimes they just won't be created. Here's my really simple code:

local veh = getPedOccupiedVehicle ( localPlayer ) 
  
local ind1 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) 
attachElements ( ind1, veh, -0.85, 2.48, -0.33 ) 
local ind2 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) 
attachElements ( ind2, veh, 0.85, 2.48, -0.33 ) 
local ind3 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) 
attachElements ( ind3, veh, -0.7, -2.7, -0.14 ) 
local ind4 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) 
attachElements ( ind4, veh, 0.7, -2.7, -0.14 ) 

Is it an MTA bug? Can I do anything about it?

Link to comment
  • 2 weeks later...
pa3ck, AboShanab - Well .. it isn't broken. But yeah, it doesn't behave as an element. I'll try to work it out somehow. Meanwhile use getElementPosition(theElement) and 'setCoronaPosition' function.

Thank you for your answer! I would love to see something like attachElement. Well done!

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