Jump to content

Marker show to player (ammunation)


simstosh

Recommended Posts

Posted

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

Posted

just create marker in right dimension..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

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.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

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.

Posted

so just set right dimenstion..

what is marker target used for - you can read in wiki page

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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