SetSuperJumpThisFrame
DocsSetSuperJumpThisFrame(player)Description
Allows the player to perform super jumps. This function must be called every frame for it to work.
It basically OR's a flag for a single frame, allowing the ped to perform a super jump only when the flag is set.
Parameters
| Name | Type | Description |
|---|---|---|
player | Player | The player we are setting this for. |
Quick Snippet: Get Playerplayer
playerUse this to get the local player ID or a target player's server ID.
-- Get the local player index (client-side)
local playerId = PlayerId()
-- Get the local player's server ID (for server events)
local serverId = GetPlayerServerId(playerId)
print("Player ID: " .. playerId)
print("Server ID: " .. serverId)
-- Get player ped from a server ID:
-- local targetPed = GetPlayerPed(GetPlayerFromServerId(targetServerId))Returns
voidThis native does not return a value.
Examples
Official
Citizen.CreateThread(function()
while true do
SetSuperJumpThisFrame(PlayerId())
-- Try enabling the two down below if you also want invincibility and no ragdoll effects
--SetPlayerInvincible(PlayerId(), true)
--SetPedCanRagdoll(PlayerPedId(), false)
Citizen.Wait(0)
end
end)