Jump to content

Zonename


Best-Killer

Recommended Posts

function citycheck (plr)
if ( plr and plr ~= source and getElementType(plr) == "player" ) then 
local city = getElementZoneName(plr,true) 
if city == "Las Venturas" then 
triggerClientEvent ( plr, 'killslist', plr ) 
end
end
end

No error but the gui didn't open ? 

what i want do ?? that when player be in Lv that gui showed to the player

Edited by Best-Killer
Link to comment

If there are no errors clientside as you said, i would check if the function gets really called (both this and the client side handler), and if the function gets called try checking all variables or excluding them (ie append to the if statement an "or true") if that won't cause problems. This may be not helpful, i'm not expert, but till others reply to this you can try what i said

Link to comment
1 minute ago, LoPollo said:

shouldn't addEventHandler be attached to something? i guess localPlayer but not sure

 

That's true LoPollo's find where is the problem i guess as he said you are missing the event attached to so just use 'root'.

 

Also i'm pretty sure there's an error for that in the client side? there's not?

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