السلام عليكم
server side#
addEvent("NssoR",true)
addEventHandler("NssoR",root,
function ()
if (getPlayerMoney(source) >= 50000) then
takePlayerMoney(source,50000)
else
outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, source, true)
end
end
)
client #
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor_Button[2] ) then
triggerServerEvent("NssoR", localPlayer)
guiSetVisible(GUIEditor_Window[1],true)
showCursor(true)
end
end)