LUA DOCUMENTATION

Build something of your own.

Explore the Premium API, GTA natives, and scripting examples.

Getting started & script examples

Save scripts in %LOCALAPPDATA%\Nenyoo\Plus\Scripts\User\. Press F10 in game for the Lua console.

Use the script thread for natives, memory, and entities; use the render thread for drawing. Yield with util.yield(ms), not WAIT.

Build new scripts with engine and foundation. The Stand layer supports existing Stand scripts in Scripts/User/stand/.

A toggle script

-- Scripts/User/heal_me.lua -- A plain script becomes an on/off toggle. script.on_tick(function() local me = PLAYER.PLAYER_PED_ID() ENTITY.SET_ENTITY_HEALTH(me, 328) end)

A sub-menu script

-- Scripts/User/my_tools.lua -- @nenyoo-menu local root = menu.my_root() menu.action(root, "Heal me", {}, "Full health", function() local me = PLAYER.PLAYER_PED_ID() ENTITY.SET_ENTITY_HEALTH(me, 328) end) local sub = menu.list(root, "More", {}, "Nested page") menu.action(sub, "Repair car", {}, "", function() local me = PLAYER.PLAYER_PED_ID() local v = PED.GET_VEHICLE_PED_IS_IN(me, false) if v ~= 0 then VEHICLE.SET_VEHICLE_FIXED(v) end end)

Loading reference…