تم التعديل#
#Client Side:
function onGuiClick(button, state, absoluteX, absoluteY)
Local = localPlayer
if source == GUIEditor.button[1] then
triggerServerEvent("A", Local)
setPedRotation(Local,91,98)
end
end
addEventHandler("onClientGUIClick", root, onGuiClick)
#Server Side:
addEvent("A",true)
addEventHandler("A", getRootElement(),function(Local)
local PlayerMoney = getPlayerMoney(Local)
if PlayerMoney >= 250 then
takePlayerMoney(Local, 250)
setElementPosition(Local,1642.4000244141, -2238.3999023438, 12.39999961853)
outputChatBox("*****************", Local, 255, 0, 0, true)
else
outputChatBox("****************", Local, 255, 0, 0,)
end
end)