iMr.SFA7 Posted April 21, 2016 Share Posted April 21, 2016 Veh = { } bindKey("x","down", function ( ) if ( Veh[client] ) then destroyElement(Veh[client]) end local xPosition , yPosition , zPosition = getElementPosition ( client ) Veh[client] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(client,Veh[client]) end ) function Destory( ) if Vehcile[client] then destroyElement(Vehcile[client]) end end addEventHandler("onPlayerWasted",getRootElement( ), Destory ) addEventHandler("onPlayerQuit",getRootElement( ), Destory ) addEventHandler("onVehicleExplode",getRootElement( ), Destory ) client = ? Link to comment
Me[Z]oO Posted April 21, 2016 Share Posted April 21, 2016 Veh = { } bindKey("x","down", function ( ) if ( Veh[source] ) then destroyElement(Veh[source]) end local xPosition , yPosition , zPosition = getElementPosition ( source ) Veh[source] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(source,Veh[source]) end ) فنكشن بند كي كلنت وسيرفر بس ارقمنت السيرفر يختلف عن الكلنت راجعه بالويكي 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