Jump to content

private vehicles for base


5150

Recommended Posts

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

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

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