jupiter.natives

  • Jupiter provides 6000+ native handlers which are documented by this external reference.
  • Native handlers can be accessed at jupiter.natives.x.y
    where x is the namespace and y is the function name (both in lowercase).

Natives must only be used within a RAGE script thread context:

function on_script()

-- called every script tick

end

jupiter.register_callback("script", on_script)

Example:

local entity = jupiter.natives.entity local player = jupiter.natives.player function on_script()

local ped = player.get_player_ped_script_index(player.player_id())

entity.set_entity_invincible(ped, 1);

end

jupiter.register_callback("script", on_script)

© Copyright 2023. All rights reserved.