-Xero Posted September 11, 2017 Share Posted September 11, 2017 Hi everyone, i found a script with works on team system, i edited the script to work with gang system, but dont work, the player can enter in the vehicle without being in the gang.. here is the code.. Kami = { createVehicle ( 422, -1217.5534667969, 1830.9927978516, 46.3984375, 0, 0, 0 ), } for i,car in ipairs(Kami) do setElementData(car,"Gang","kami") end addEventHandler("onVehicleStartEnter", root, function(player) local gangName = getPlayerGang(player) and getGangName(getPlayerGang(player)) if gangName ~= getElementData(source,"Gang") then cancelEvent() end end) Link to comment
Storm-Hanma Posted September 11, 2017 Share Posted September 11, 2017 Can you describe your problem in detain details? Are you asking for private cars skins?,or private vehicles for gangs? If you are looking for vehicles for team or gangs then use this resources which works fine with team,group etc.. https://community.multitheftauto.com/index.php?p=resources&s=details&id=10589 Link to comment
Mr.Loki Posted September 11, 2017 Share Posted September 11, 2017 You are getting the error because getPlayerGang is not defined in your script. You must define it in your script to use it. Try copying the getPlayerGang function to this code. 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