Firespider Posted July 10, 2022 Share Posted July 10, 2022 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 Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 If you share a screenshot of your error, we can help better. Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 if not getTeamName(theTeam) == "ORFK" then outputChatBox("Nincs engedelyed hozza") end Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 1 minute ago, Firespider said: Thanks you're welcome, welcome to our forum site. if you have any other problem please https://forum.multitheftauto.com/forum/71-scripting/ write from this section. If your problem is fixed, give a like to the comment. Link to comment
Firespider Posted July 10, 2022 Author Share Posted July 10, 2022 There would be one more problem Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 Just now, Firespider said: There would be one more problem okey Link to comment
Firespider Posted July 10, 2022 Author Share Posted July 10, 2022 Could you help with this too? Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 of course, just state the subject and wait for my reply Link to comment
Firespider Posted July 10, 2022 Author Share Posted July 10, 2022 Okay, I just thought he didn't send it :D Thanks for helping Link to comment
Firespider Posted July 10, 2022 Author Share Posted July 10, 2022 Here is the new code. Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 (edited) yes what is the problem here Edited July 10, 2022 by Shady1 Link to comment
Shady1 Posted July 10, 2022 Share Posted July 10, 2022 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) Link to comment
Moderators Vinyard Posted July 10, 2022 Moderators Share Posted July 10, 2022 Moving this to Scripting. 1 Link to comment
Firespider Posted July 10, 2022 Author Share Posted July 10, 2022 Now it doesn't show any errors, but not only the ORFK team can spawn the car. didn't write it then, but now he does Link to comment
AngelAlpha Posted July 10, 2022 Share Posted July 10, 2022 12 minutes ago, Firespider said: Now it doesn't show any errors, but not only the ORFK team can spawn the car. didn't write it then, but now he does show me your meta.xml Link to comment
AngelAlpha Posted July 10, 2022 Share Posted July 10, 2022 2 minutes ago, Firespider said: 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 Link to comment
AngelAlpha Posted July 10, 2022 Share Posted July 10, 2022 8 minutes ago, Firespider said: Thanks. Working? 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