بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاتة
عندي كود الـ
Flip
بس فية مشكلة : /
مايسوي الوظيفة يعني مايعدل الموتر
==== 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
)
ممكن اصلاح للخطأ