addEvent( "onVehicleStartEnter", true )
addEventHandler( "onVehicleStartEnter", getRootElement(),
function( player )
if(source==C)then
if (getPlayerTeam(player)~="yourteam")then
cancelEvent()
r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255)
outputChatBox( "* Only For Team !", player,r,b,g, true )
else
r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255)
outputChatBox( "* Welcome Team", player, r,b,g, true )
end
end
end
)
* C = the vehicle what you created and what you want it as Team's vehicle