αвυ-wαleed Posted April 5, 2014 Share Posted April 5, 2014 ابغى كل السيارات لها لون احمر markerpv = createMarker( 1847.0590820313, -2552.94140625, 12.55, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp( model ) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(model, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler('onPlayerQuit', root,function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end ) addEventHandler ( "onMarkerHit", markerpv, function ( za7f ) if getElementType ( za7f ) == "player" then if ( getElementData( za7f, "Group" ) == "G" ) then triggerClientEvent (za7f, "showGUIpv", za7f) end end end ) Link to comment
!#NssoR_) Posted April 5, 2014 Share Posted April 5, 2014 setVehicleColor( uVehicle, r, g, b ) 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