Jump to content

Please help me


Recommended Posts

Posted
Hello, I wanted to achieve with my script that a specific team can use the command, but this is what I wrote in Errorr, please help me, thanks in advance.
Here is the error code
Posted
local kapcsolat = exports["mysql"]:getConnection()
function Garage (thePlayer, commandName)
local theTeam = getPlayerTeam(thePlayer)
createVehicle(596, 1574.003, -1711.330, 5.98)
outputChatBox("Sikeressen le kertred az autot")
if not theTeam then end
if not getTeamName(theTeam) == "ORFK" then outputChatBox("Nincs engedelyed hozza") end
end
addCommandHandler("vhs", Garage)

 

Posted
12 minutes ago, Firespider said:
Now it doesn't show any errors, but not only the ORFK team can spawn the car.

spacer.png

didn't write it then, but now he does

 

 
 

show me your meta.xml

Posted
2 minutes ago, Firespider said:

spacer.png

local kapcsolat = exports["mysql"]:getConnection()
function Garage (thePlayer)
  local theTeam = getPlayerTeam(thePlayer)
  if not theTeam or not getTeamName(theTeam) == "ORFK" then outputChatBox("Nincs engedelyed hozza") return end
  createVehicle(596, 1574.003, -1711.330, 5.98)
  outputChatBox("Sikeressen le kertred az autot")
end
addCommandHandler("vhs", Garage)

Check this code

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