5150 Posted November 8, 2015 Share Posted November 8, 2015 hi guys, does anyone have a resource or script that will only allow certain vehicles to be locked only for one gang? i dont want EVERY (for example leviathan) in the server to be locked for that team, i just want the vehicles that are inside my base locked. ive tried different resources, but they never work for me... if anyone is awesome enough to help me, here are the vehicles i want locked and what they are named in my server (if it helps): i need them for Psycho Mans Gang our bases are area 51 (restricted area), and mount chiliad ****this is hunter**** ****maverick**** ****hydra**** ****rhino**** i can enter the coordinates to place the vehicles if needed, but could someone set the script up for me? (IDEA) maybe its possible to make a colshape square in the area, to lock every vehicle in that square to a certain gang? Link to comment
Dealman Posted November 8, 2015 Share Posted November 8, 2015 Using a colshape would work, yes. You could also use getZoneName I suppose, but it wouldn't be as accurate. The event you need to use is onVehicleEnter. Then you check their team using getPlayerTeam and/or getTeamName. If you have access to the script that spawns the vehicles, you could also use setElementData and getElementData. If they're not in the team "Psycho Mans Gang" then use cancelEvent. Link to comment
Best-Killer Posted November 8, 2015 Share Posted November 8, 2015 do you mean Group Vehicles ? Link to comment
5150 Posted November 9, 2015 Author Share Posted November 9, 2015 yes killer. just a colshape where if you enter area 51 or mount chiliad, all vehicles in the shape are locked for my team/group/gang whatever 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