Jump to content

Need Help


yMassai

Recommended Posts

local skin = {[287] = true} 
--lock 
--lock vehicle lock 
[color=#FF4000]lockVehicles = { [470]=true } --sets the lock vehicles[/color] 
[color=#FF4000]lockSkins = { [287] =true } -- sets the lock skins[/color] 
  
function lockenterVehicle ( player, seat, jacked ) 
    if ( lockVehicles[getElementModel ( source )] ) and ( not lockSkins[getElementModel ( player )] ) and ( seat == 0 ) then --checks player skin 
            cancelEvent() 
        outputChatBox ( "*You can't enter in Vehícle", player , 255, 00, 00) --info in chatbox 
    end 
end 
addEventHandler ( "onVehicleStartEnter", getRootElement(), lockenterVehicle ) 

I would like to add more vehicles and skins but I can not, can someone help me?

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