Jump to content

ابي كود تصليح


baba

Recommended Posts

#كلنت

addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if ( source == GUIEditor.button[1] ) then 
                triggerServerEvent ( "fix", localPlayer ) 
            end 
end) 

#سيرفر

addEvent("fix", true) 
addEventHandler("fix",root, 
 function () 
vehicle = getPedOccupiedVehicle ( source ) 
 fixVehicle ( vehicle ) 
end) 

Link to comment

^^

vehicle استخدم لوكل للمتغير

يعني اللاعب معه سيارة قبل ما تصلحها عشان ما يجي خطأ في الدي بق false تحقق ان المتغير مو

+

Warning: You should use the global variable client serverside instead of passing the localPlayer by parameter or source. Otherwise event faking (passing another player instead of the localPlayer) would be possible. More information at addEventHandler
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...