Jump to content

Help Me PLs Respawn


orcun99

Recommended Posts

vehicle1 = createVehicle(587, 2803.3999023438, 2637.8999023438, 10.60000038147, 0, 0, 206) -- This car can be

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 ( "This vehicle is locked for following team: admin ", player, 255, 0, 0, false )

else

outputChatBox ( "Welcome to your vehicle,Sir!", player, 0, 255, 0, false )

end

end

end

addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate )

I set this code coordinates the team's ride in the vehicle while providing only a specific location of this tool is changed and if the driver does not want to return to again coordinate their vehicle is exploded again I want you back

Changed location of the vehicle within 50 seconds if I want to return to the birthplace coordinates. Please help

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