اوكي خلك معي انا بسوي الحين
هذي محاولتي يخوي
كلنت
speedy = createMarker(3102.84253,-2093.56201,1.16875-1,'cylinder',1,2,12,255,255)
function marker(player)
if getElementType(player) == "player" and player == localPlayer then
outputChatBox("#0000FF*#FF0000SpeedPerk#0000FF*this will cost you ( #FF0000$400,000#0000FF ) press'tab'", 255,255,255,true)
if getKeyState( "tab" ) == true or getKeyState( "tab" ) == true then
triggerServerEvent("buyperkspeed",localPlayer)
end
end
end
addEventHandler("onClientMarkerHit", speedy, marker)
addEvent("speed",true)
addEventHandler("speed",root,
function()
setGameSpeed(tonumber(8))
end)
سيرفر
addEvent("buyperkspeed",true)
addEventHandler("buyperkspeed",root,
function()
if getPlayerMoney(source) > 400000 then
takePlayerMoney(source,400000)
triggerClientEvent("speed",source)
end
end
)
ما اشتغلت