i S6O Posted June 8, 2015 Share Posted June 8, 2015 -- ServerSide: function Spwan3 ( ) if ( isElement( vehicle ) ) then destroyElement ( vehicle ) end local x, y, z = getElementPosition( source ) local vehicle = createVehicle( 462, x, y, z ) warpPedIntoVehicle( source, vehicle ) setVehicleColor(vehicle, 255, 255, 255) end addEvent( 'show4', true ) addEventHandler( 'show4', root, Spwan3 ) -- ClientSide: triggerServerEvent ( 'show4', localPlayer ) -- المشكلة اذا السيارة الموجود ماتختفي ,, انا ابيه تختفي Link to comment
Walid Posted June 8, 2015 Share Posted June 8, 2015 Because it's a local variable. vehicle = createVehicle( 462, x, y, z ) Link to comment
i S6O Posted June 8, 2015 Author Share Posted June 8, 2015 ترجمه + بعدين هذا قسم عربي موب انجليزي Link to comment
Walid Posted June 8, 2015 Share Posted June 8, 2015 -- ServerSide: function Spwan3 ( ) if ( isElement( vehicle ) ) then destroyElement ( vehicle ) end x, y, z = getElementPosition( source ) vehicle = createVehicle( 462, x, y, z ) warpPedIntoVehicle( source, vehicle ) setVehicleColor(vehicle, 255, 255, 255) end addEvent( 'show4', true ) addEventHandler( 'show4', root, Spwan3 ) 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