local memory = require 'memory'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('gravity', cmd)
wait(-1)
end
function cmd(arg)
gravitation = tonumber(arg)
if type(gravitation) == 'number' then
local result = memory.setfloat(0x863984, gravitation)
if result then
sampAddChatMessage('Ready! New gravitation: ' .. tostring(gravitation), -1)
else
sampAddChatMessage('Something went wrong', -1)
end
else
sampAddChatMessage('Use: /gravity [float]', -1)
end
end