Jump to content

[مساعدة في مود الفيب]


Doffy

Recommended Posts

غير مجرب  :

-- Client --

addEventHandler ( 'onClientGUIClick', root,
    function (   )
         if ( source == button ) then
         triggerServerEvent ( "onGiveCar", localPlayer )
       end
    end
);

-- Server --

Vehicle = {},

addEvent ( "onGiveCar", true )
addEventHandler ( "onGiveCar", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
          if isElement( nVehicle[source] ) then destroyElement( Vehicle[source] )
        else
          Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r)
          warpPedIntoVehicle ( source,Vehicle[source] )
        end
    end
);

 

Edited by Deativated
Link to comment
5 minutes ago, Deativated said:

غير مجرب  :

-- Client --


addEventHandler ( 'onClientGUIClick', root,
    function (   )
         if ( source == button ) then
         triggerServerEvent ( "onGiveCar", localPlayer )
       end
    end
);

-- Server --


Vehicle = {},

addEvent ( "onGiveCar", true )
addEventHandler ( "onGiveCar", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
          if isElement( nVehicle[source] ) then destroyElement( Vehicle[source] )
        else
          Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r)
          warpPedIntoVehicle ( source,Vehicle[source] )
        end
    end
);

 

موب شغال يخوي :( 

Link to comment

ورينا الدي بق ؟

جرب :

Vehicle = {},

addEvent ( "onGiveCar", true )
addEventHandler ( "onGiveCar", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
          if isElement( Vehicle[source] ) then destroyElement( Vehicle[source] )
        else
          Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r)
          warpPedIntoVehicle ( source,Vehicle[source] )
        end
    end
);

لا تنسي اي دي السياره .!

Edited by Deativated
Link to comment
1 minute ago, Deativated said:

ورينا الدي بق ؟

جرب :


Vehicle = {},

addEvent ( "onGiveCar", true )
addEventHandler ( "onGiveCar", root,
    function (   )
          local x, y, z = getElementPosition ( source )
          local _,_,r = getPedRotation ( source )
          if isElement( Vehicle[source] ) then destroyElement( Vehicle[source] )
        else
          Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r)
          warpPedIntoVehicle ( source,Vehicle[source] )
        end
    end
);

 

شكرا يخوي اشتغل :D

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...