-- 1. Register the race rpg.register_race("human") -- 2. Define custom stats/callbacks rpg.define_race("human", { speed = 1.2, -- Override default speed on_spawn = function() print("A human has entered the world!") end, on_update = function(dt) print("Human is updating with delta time:", dt) end, }) -- 3. Use the race in-game local human = rpg.get_race("human") print(human.speed) -- Output: 1.2 -- Trigger callbacks rpg.run_race_callback("human", "on_spawn") -- Prints spawn message rpg.run_race_callback("human", "on_update", 0.016) -- Prints update