Jump to content

اصلاح كود =


Recommended Posts

بسم الله الرحمن الرحيم

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

عندي كود الـ

Flip

بس فية مشكلة : /

مايسوي الوظيفة يعني مايعدل الموتر :roll:

==== Client Side ===

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source == GUIEditor_Button[2] ) then 
triggerServerEvent("buyFlip",getLocalPlayer()) 
end 
 end 
)  

=== Server Side ===

addEvent("buyFlip",true)  
addEventHandler("buyFlip",root, 
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 1500) then 
    takePlayerMoney(source,1500) 
        rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source))  
     local name = getPlayerName(source) 
  
        outputChatBox ( "#0080FF*** [ #FFFFFF" .. name .. " #0080FF] Has Bught Flip For 1500 $", getRootElement(), 255, 0, 0, true ) 
      
    else 
   
        outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) 
end 
  
end 
  
) 

ممكن اصلاح للخطأ :roll:

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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