addEventHandler("onResourceStart", resourceRoot,
function(player)
x, y, z = getElementPosition(player)
exports.customblips:createCustomBlip(x, y, 20, 20, "imageName.png")
end
end
)
function check()
if (x, y, z = true) then
return true
else
return false
end
end
setTimer(check, 1000, 0)
Untested
Lehna, tnajem t7ot scripts à les publiques, nebda ena
hetha script ya3ti el 3bed elkol 1000$ kol 1 heure
s.lua
function giveMoney()
local players = getElementsByType("player")
for _,v in ipairs(players) do
givePlayerMoney(v, 1000)
outputChatBox("You have been given 1000$ as Payday", root, 0, 255, 0)
end
end
setTimer(giveMoney, 3600000, 0)
meta.xml
<meta>
<script src="s.lua" type="server" />
</meta>