simstosh Posted August 13, 2010 Share Posted August 13, 2010 Hi. I've downloaded the LSAN resource (Los Santos Ammunation), and do some adaptations on the script, adding a marker to all ammunations accessible to players and recreate the GUI menu (who are bugging with other GUI's on my script). But, when I enter on a Ammunation, the script works (cause he gets the player position and shows the menu), but the marker won't show, because the 'interiors' resource uses different dimensions for the teleports won't bug depending of the ammunation you enter. So, when the dimension = 0, the marker shows normally, but the player go to any ammunation in SA. How can I set the marker to show to the player when he enters in any ammunation? Here is the .lua, on Pastebin: http://pastebin.com/MXDFSKy7 Thanks Link to comment
dzek (varez) Posted August 13, 2010 Share Posted August 13, 2010 just create marker in right dimension.. Link to comment
simstosh Posted August 13, 2010 Author Share Posted August 13, 2010 Yea, I know, but, how can I set a dimension to a marker? Using getElementType and SetElementDimension? Can u give me a example? Link to comment
dzek (varez) Posted August 14, 2010 Share Posted August 14, 2010 setElementDimension. -- This is WRONG local mar = createMarker ( 295.02026367188, -37.797130584717, 1001.515625, cylinder, 1, 255, 0, 0 ) -- 4th argument is a STRING -- surround it with "" why are you using setMarkerTarget? This is not for creating teleports.. Click - wiki page Idea of your code is a bit wrong. With wrong idea you will get bugged many times. Link to comment
simstosh Posted August 14, 2010 Author Share Posted August 14, 2010 This base isn't mine, I get only from the LSAN resource (but works)... The "cylinder" I only tried to use him, but doesn't change (maybe because I haven't put the "") And the Marker Targets are for check if the player is in a marker (GetMarkerTarget) and compare with the player pos, to show the menu. Basically, the script works, only the markers won't show because the dimensions are different. Link to comment
dzek (varez) Posted August 14, 2010 Share Posted August 14, 2010 so just set right dimenstion.. what is marker target used for - you can read in wiki page 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