yMassai Posted March 25, 2012 Share Posted March 25, 2012 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
Kenix Posted March 25, 2012 Share Posted March 25, 2012 viewtopic.php?f=148&t=40809 lockVehicles = { [470] = true; [471] = true; } --sets the lock vehicles lockSkins = { [287] = true; [288] = true; } -- sets the lock skins Ex 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