Jump to content

Questions


Anubhav

Recommended Posts

Check if the source == marker, lol.

Lol?

I make my markers like this

I change the value of Marker variable -.-.

local Marker = createMarker(...)

local Marker = createMarker(...)

local Marker = createMarker(...)

local Marker = createMarker(...)

How could I smell that? I didn't see any script lol.

Link to comment

Thanks alot!

Something new came..

  
function markerHit2 (hitPlayer, matchingDimension) 
    if isPedInVehicle (hitPlayer) then return end 
        if getElementType(hitPlayer) == "player" then 
            if  getTeamName(getPlayerTeam(hitPlayer)) == "Parademics"  then 
        triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) 
    else 
        outputChatBox("You're not in the team for this specific marker!", hitPlayer) 
end 
end 
end 
  

Now it opens window if he doesn't have team why?

Link to comment
Thanks alot!

Something new came..

  
function markerHit2 (hitPlayer, matchingDimension) 
    if isPedInVehicle (hitPlayer) then return end 
        if getElementType(hitPlayer) == "player" then 
            if  getTeamName(getPlayerTeam(hitPlayer)) == "Parademics"  then 
        triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) 
    else 
        outputChatBox("You're not in the team for this specific marker!", hitPlayer) 
end 
end 
end 
  

Now it opens window if he doesn't have team why?

u must put getElementType in First and u must Check if player have team then Check his team

Link to comment
Thanks alot!

Something new came..

  
function markerHit2 (hitPlayer, matchingDimension) 
    if isPedInVehicle (hitPlayer) then return end 
        if getElementType(hitPlayer) == "player" then 
            if  getTeamName(getPlayerTeam(hitPlayer)) == "Parademics"  then 
        triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) 
    else 
        outputChatBox("You're not in the team for this specific marker!", hitPlayer) 
end 
end 
end 
  

Now it opens window if he doesn't have team why?

u must put getElementType in First and u must Check if player have team then Check his team

He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue.

Btw: You missed an end.

Link to comment
Thanks alot!

Something new came..

  
function markerHit2 (hitPlayer, matchingDimension) 
    if isPedInVehicle (hitPlayer) then return end 
        if getElementType(hitPlayer) == "player" then 
            if  getTeamName(getPlayerTeam(hitPlayer)) == "Parademics"  then 
        triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) 
    else 
        outputChatBox("You're not in the team for this specific marker!", hitPlayer) 
end 
end 
end 
  

Now it opens window if he doesn't have team why?

u must put getElementType in First and u must Check if player have team then Check his team

He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue.

Btw: You missed an end.

I din't missed any end, lol. I've the team, it outputs that I don't have the team and opens the GUI. What is the problem?

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