Jump to content

طــلب كــود بــسيـــط


Abu-Solo

Recommended Posts

السلام عليكم ورحمة الله وبركاتة

عندي طلب بسيط وانشاء الله ما اكون ازعجت احد بـ كثرة طلباتي

ابغي لما اضغط علي زرار يعطيني سيارة,

ولما اللاعب يخرج من السيرفر يسحب السيارة

وما ابغاه يجيب اكثر من سيارة, هي سيارة وحده بس.

وشكرأ :)

Link to comment
3 minutes ago, iPrestege said:

addEventHandler ( 'onClientGUIClick' );
triggerServerEvent;
table;
addEvent;
addEventHandler;
isElement;
destroyElement;
createVehicle;
addEventHandler ( 'onPlayerQuit' );
addEventHandler ( 'onVehicleExplode' );

 

ابغي الكود كامل لاهنت, انا ما افهم لـ التيبل او ال

table

Link to comment
addEventHandler("onClientGUIClick",resourceRoot,function ( )
    if source == GUIEditor.button[1] then
        triggerServerEvent("car",localPlayer,411)	 -- ايدي
    end
end
)
Cars = {}
 
addEvent("car",true)
addEventHandler("car",root,
function ( ID )
    if ( Cars[client] ) then
        destroyElement(Cars[client])
    end
    if ( getPedOccupiedVehicle(client) ) then
        removePedFromVehicle ( client )
    end
    Cars[client] = createVehicle(ID,-1254.31653, -185.36768, 15.14844) 
    warpPedIntoVehicle ( client, Cars[client] )  
end
)
 

 

  • Like 1
Link to comment
39 minutes ago, MR.NaiF-MTA said:

addEventHandler("onClientGUIClick",resourceRoot,function ( )
    if source == GUIEditor.button[1] then
        triggerServerEvent("car",localPlayer,411)	 -- ايدي
    end
end
)

Cars = {}
 
addEvent("car",true)
addEventHandler("car",root,
function ( ID )
    if ( Cars[client] ) then
        destroyElement(Cars[client])
    end
    if ( getPedOccupiedVehicle(client) ) then
        removePedFromVehicle ( client )
    end
    Cars[client] = createVehicle(ID,-1254.31653, -185.36768, 15.14844) 
    warpPedIntoVehicle ( client, Cars[client] )  
end
)
 

 

يعطيك العافية ما قصرت

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...