SkiZo Posted December 9, 2016 Share Posted December 9, 2016 Hello EveryOne , I Need Some Help , I Have This Script For Private Car .. Every thing is good but i winna to add aBlip Attached to the Car And Only That Two Players Can See It !! --------------------------------------------------------------------------------------------------------------------------------------- vehicle = createVehicle( 503, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272 ) setVehicleColor( vehicle, 46, 254, 154 ) function lockPrivate( theplayer, seat, jacked ) if ( source == vehicle ) then local account = getPlayerAccount( theplayer ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "Player1" or accountName == "Player2" ) then cancelEvent() outputChatBox("#9E0000This vehicle is locked for following users:#0D9905Player1 #9E0000Shared With #0D9905Player2 ", theplayer, 255, 255, 255, true) else outputChatBox("#0D9905Welcome to your vehicle, Sir!", theplayer, 255, 255, 255, true) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) setVehicleDamageProof(vehicle, true) ----------------------------------------------------------------------------------------------------------------------------------- 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