orcun99 Posted May 28, 2014 Share Posted May 28, 2014 Hello, I want a script / privatevehicle When you write a menu shown vehicle models that are assigned to whom should I write where I want that truck come tool by class or by individuals or by teams get the option to lock I just got to the room without menu script locking by team Can you help over here on codes vehicle1 = createVehicle(506, 2798.6005859375, 2634.900390625, 10.60000038147, 0, 0, 10.60000038147) -- This car can be toggleVehicleRespawn ( vehicle1 , true ) setVehicleRespawnDelay ( vehicle1 , 10000) -- Araç patladıktan kaç saniye sonra respawnlanacağını belirtir. setVehicleIdleRespawnDelay ( vehicle1 , 60000) -- vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( player, seat, jacked ) if ( source == vehicle1 ) then if ( seat ~= 0 ) then -- If the seat isn't '0' ( driver's seat ) return -- Stop the function from executing. end local playerTeam = getPlayerTeam ( player ) local oldTeamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if ( oldTeamName ~= "Admins" ) then cancelEvent ( ) outputChatBox ( "Buna binmek için Admin Olman gerek. ", player, 255, 0, 0, false ) else outputChatBox ( "Tekrar Hoşgeldin.", player, 0, 255, 0, false ) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) 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