Клиент
559 функций. Используйте поиск (Ctrl K) или список ниже.
| Функция | Описание |
|---|---|
| ActivateTimecycleEditor | Activates built-in timecycle editing tool. |
| AddAudioSubmixOutput | Adds an output for the specified audio submix. |
| AddAuthorizedParachuteModel | Adds the given model name hash to the list of valid models for the player ped's parachute. |
| AddAuthorizedParachutePackModel | Adds the given model name hash to the list of valid models for the player ped's parachute pack. |
| AddHealthConfig | Adds new health config. |
| AddMinimapOverlay | Loads a minimap overlay from a GFx file in the current resource. |
| AddMinimapOverlayWithDepth | Loads a minimap overlay from a GFx file in the current resource. |
| AddReplaceTexture | Experimental natives, please do not use in a live environment. |
| AddTextEntry | entryKey: entryText: |
| AddTextEntryByHash | entryKey: entryText: |
| ApplyWeatherCycles | Overrides the weather cycles, using the values set through previous calls to 'SET_WEATHER_CYCLE_ENTRY'. Once applied, the li |
| BreakOffVehicleWheel | Break off vehicle wheel by index. The leaveDebrisTrail flag requires putOnFire to be true. |
| CallMinimapScaleformFunction | This is similar to the PushScaleformMovieFunction natives, except it calls in the TIMELINE of a minimap overlay. |
| ClearDrawOrigin | Resets the screen's draw-origin which was changed by the function SET_DRAW_ORIGIN back to x=0, y=0. See [SET_DRAW_ORIGIN](#_ |
| ClearVehicleXenonLightsCustomColor | Removes vehicle xenon lights custom RGB color. |
| CloneTimecycleModifier | lua local sourceName = "underwater" local cloneName = "my_awesome_timecycle" |
| CommitRuntimeTexture | Commits the backing pixels to the specified runtime texture. |
| CreateAudioSubmix | Creates an audio submix with the specified name, or gets the existing audio submix by that name. |
| CreateDryVolume | Creates a volume where water effects do not apply. Useful for preventing water collisions from flooding areas underneath them. This has no e |
| CreateDui | Creates a DUI browser. This can be used to draw on a runtime texture using CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE. |
| CreateRuntimeTexture | Creates a blank runtime texture. |
| CreateRuntimeTextureFromDuiHandle | Creates a runtime texture from a DUI handle. |
| CreateRuntimeTextureFromImage | Creates a runtime texture from the specified file in the current resource or a base64 data URL. |
| CreateRuntimeTxd | Creates a runtime texture dictionary with the specified name. Example: lua local txd = CreateRuntimeTxd('meow') |
| CreateTimecycleModifier | Create a clean timecycle modifier. See SET_TIMECYCLE_MODIFIER_VAR to add variables. |
| DestroyDui | Destroys a DUI browser. |
| DisableIdleCamera | Disables the game's afk camera that starts panning around after 30 seconds of inactivity. |
| DisableRawKeyThisFrame | Disables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_ natives. |
| DisableVehiclePassengerIdleCamera | Disables the game's afk camera that starts panning around after 30 seconds of inactivity(While riding in a car as a passenger) |
| DisableWorldhorizonRendering | Disables the game's world horizon lods rendering (see farlods.#dd). Using the island hopper natives might also affect this state. |
| DoesTextureExist | In compare to 0x31DC8D3F216D8509 return true if texture its created when 0x31DC8D3F216D8509 return true if you put there any id in valid ran |
| DoesTimecycleModifierHasVar | lua local modifierName = "superDARK" local varName = "postfx_noise" |
| DoesVehicleUseFuel | Checks whether the vehicle consumes fuel. The check is done based on petrol tank volume and vehicle type. Bicycles and vehicles with petrol |
| DoorSystemGetActive | Returns a list of door system entries: a door system hash (see ADD_DOOR_TO_SYSTEM) and its object handle. |
| DoorSystemGetSystemSize | The number of doors registered in the system |
| DrawBox | x1: y1: z1: x2: y2: z2: red: green: blue: alpha: |
| DrawCorona | Allows drawing advanced light effects, known as coronas, which support flares, volumetric lighting, and customizable glow properties. |
| DrawGlowSphere | Draw a glow sphere this frame. Up to 256 per single frame. |
| DrawLight | Draw the prepared light. |
| DrawLine | x1: y1: z1: x2: y2: z2: red: green: blue: alpha: |
| DrawLine2d | Like DRAW_RECT, but it's a line. |
| DrawPoly | x1: y1: z1: x2: y2: z2: x3: y3: z3: red: green: blue: alpha: |
| DrawRectRotated | DRAW_RECT, but with a rotation. Seems to be broken. |
| EndFindObject | findHandle: |
| EndFindPed | findHandle: |
| EndFindPickup | findHandle: |
| EndFindVehicle | findHandle: |
| ExperimentalLoadCloneCreate | This native is not implemented. |
| ExperimentalLoadCloneSync | This native is not implemented. |
| ExperimentalSaveCloneCreate | This native is not implemented. |
| ExperimentalSaveCloneSync | This native is not implemented. |
| FindFirstObject | outEntity: |
| FindFirstPed | outEntity: |
| FindFirstPickup | outEntity: |
| FindFirstVehicle | outEntity: |
| FindNextObject | findHandle: outEntity: |
| FindNextPed | findHandle: outEntity: |
| FindNextPickup | findHandle: outEntity: |
| FindNextVehicle | findHandle: outEntity: |
| ForceSnowPass | Forces the game snow pass to render. |
| GetActivePlayers | Returns all player indices for 'active' physical players known to the client. The data returned adheres to the following layout: [127, 42, 1 |
| GetAllRopes | Returns all rope handles. The data returned adheres to the following layout: [ 770, 1026, 1282, 1538, 1794, 2050, 2306, 2562, 2818, 3074, 33 |
| GetAllTrackJunctions | Returns all track junctions on the client The data returned adheres to the following structure: [1, 2, 4, 6, 69, 420] |
| GetAllVehicleModels | Returns all registered vehicle model names, including non-dlc vehicles and custom vehicles in no particular order. |
| GetAmbientPedRangeMultiplier | A getter for SET_AMBIENT_PED_RANGE_MULTIPLIER_THIS_FRAME. |
| GetAmbientVehicleRangeMultiplier | A getter for SET_AMBIENT_VEHICLE_RANGE_MULTIPLIER_THIS_FRAME. |
| GetAspectRatio | Gets the current aspect ratio |
| GetCalmingQuadAtCoords | This native returns the index of a calming quad if the given point is inside its bounds. |
| GetCalmingQuadBounds | lua local success, minX, minY, maxX, maxY = GetCalmingQuadBounds(1) |
| GetCalmingQuadCount | lua local calmingQuadCount = GetCalmingQuadCount() |
| GetCalmingQuadDampening | lua local success, dampening = GetCalmingQuadDampening(1) |
| GetCamMatrix | Returns the world matrix of the specified camera. To turn this into a view matrix, calculate the inverse. |
| GetClientConfigBool | Returns whether a specific client configuration flag is currently enabled. You can find a list of configuration flags in [SET_CLIENT_CONFIG_ |
| GetClosestTrackNodes | Get all track nodes and their track ids within the radius of the specified coordinates. |
| GetCurrentGameName | This native returns the currently used game's name. |
| GetCurrentScreenResolution | Gets the current screen resolution. |
| GetCurrentServerEndpoint | Returns the peer address of the remote game server that the user is currently connected to. |
| GetDuiHandle | Returns the NUI window handle for a specified DUI browser object. |
| GetEntityAddress | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| GetEntityArchetypeName | Returns entity's archetype name, if available. |
| GetFallDamageLandOnFootMultiplier | A getter for SET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER. |
| GetFallDamageMultiplier | A getter for SET_FALL_DAMAGE_MULTIPLIER. |
| GetFuelConsumptionRateMultiplier | Current fuel consumption rate multiplier. 0 means that fuel is not consumed. |
| GetFuelConsumptionState | True if fuel consumption is turned on. False otherwise. |
| GetGlobalPassengerMassMultiplier | A getter for SET_GLOBAL_PASSENGER_MASS_MULTIPLIER. |
| GetHudComponentAlign | See SET_SCRIPT_GFX_ALIGN for details about how gfx align works. |
| GetHudComponentName | id: The hud component id. |
| GetHudComponentSize | id: The hud component id. |
| GetInteriorEntitiesExtents | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPortalCornerPosition | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPortalCount | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPortalEntityArchetype | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| GetInteriorPortalEntityCount | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| GetInteriorPortalEntityFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| GetInteriorPortalEntityPosition | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| GetInteriorPortalEntityRotation | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| GetInteriorPortalFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPortalRoomFrom | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPortalRoomTo | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorPosition | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorRoomCount | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetInteriorRoomExtents | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| GetInteriorRoomFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| GetInteriorRoomIndexByHash | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| GetInteriorRoomName | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| GetInteriorRoomTimecycle | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| GetInteriorRotation | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| GetKillFallHeight | A getter for SET_KILL_FALL_HEIGHT. |
| GetMapZoomDataLevel | Returns the zoom level data by index from mapzoomdata.meta file. |
| GetMinimapType | Get the minimap type: 0 = Off, 1 = Regular, 2 = Expanded, 3 = Simple, |
| GetNetworkWalkMode | — |
| GetNuiCursorPosition | x: y: |
| GetNumberOfPedCollectionDrawableVariations | An analogue of GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS that returns number of drawable variations inside a single coll |
| GetNumberOfPedCollectionPropDrawableVariations | An analogue of GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS that returns number of prop variations inside a single col |
| GetNumberOfPedCollectionPropTextureVariations | An alternative to GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS that uses local collection indexing instead of the globa |
| GetNumberOfPedCollectionTextureVariations | An alternative to GET_NUMBER_OF_PED_TEXTURE_VARIATIONS that uses local collection indexing instead of the global one |
| GetParkedVehicleDensityMultiplier | A getter for SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME. |
| GetPauseMapPointerWorldPosition | Returns the world position the pointer is hovering on the pause map. |
| GetPedBoneMatrix | Returns the bone matrix of the specified bone id. usefull for entity attachment |
| GetPedCollectionLocalIndexFromDrawable | Gets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_DRAWABLE) for the given globa |
| GetPedCollectionLocalIndexFromProp | Gets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_PROP) for the given global pro |
| GetPedCollectionName | Returns name of collection under given index for the given Ped. |
| GetPedCollectionNameFromDrawable | Gets collection name for the given global drawable ID. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE is used to |
| GetPedCollectionNameFromProp | Gets collection name for the given global prop index. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP is used to get |
| GetPedCollectionsCount | Returns number of variation collections available for the given Ped. |
| GetPedDecorations | Returns a list of decorations applied to a ped. |
| GetPedDensityMultiplier | A getter for SET_PED_DENSITY_MULTIPLIER_THIS_FRAME. |
| GetPedDrawableGlobalIndexFromCollection | Returns global drawable index based on the local one. Is it a reverse to GET_PED_COLLECTION_NAME_FROM_DRAWABLE and [GET_PED_ |
| GetPedDrawableVariationCollectionLocalIndex | An analogue to GET_PED_DRAWABLE_VARIATION that returns collection local drawable index (inside [GET_PED_DRAWABLE_VAR |
| GetPedDrawableVariationCollectionName | An analogue to GET_PED_DRAWABLE_VARIATION that returns collection name instead of the global drawable index. |
| GetPedEyeColor | A getter for _SET_PED_EYE_COLOR. Returns -1 if fails to get. |
| GetPedFaceFeature | A getter for _SET_PED_FACE_FEATURE. Returns 0.0 if fails to get. |
| GetPedHairColor | A getter for _SET_PED_HAIR_COLOR. Returns -1 if fails to get. |
| GetPedHairHighlightColor | A getter for _SET_PED_HAIR_COLOR. Returns -1 if fails to get. |
| GetPedHeadOverlayData | A getter for SET_PED_HEAD_OVERLAY and _SET_PED_HEAD_OVERLAY_COLOR natives. |
| GetPedModelHealthConfig | Gets a ped model's health config. |
| GetPedModelPersonality | Gets a ped model's personality type. |
| GetPedMovementClipset | ped: The target ped. |
| GetPedPropCollectionLocalIndex | An analogue to GET_PED_PROP_INDEX that returns collection local prop index (inside [GET_PED_PROP_COLLECTION_NAME](#_ |
| GetPedPropCollectionName | An analogue to GET_PED_PROP_INDEX that returns collection name instead of the global drawable index. |
| GetPedPropGlobalIndexFromCollection | Returns global prop index based on the local one. Is it a reverse to GET_PED_COLLECTION_NAME_FROM_PROP and [GET_PED_COLLECTIO |
| GetPedScale | ped: The target ped |
| GetPedSweat | A getter for SET_PED_SWEAT. |
| GetPedWetness | ped: The target ped |
| GetPedWetnessHeight | ped: The target ped |
| GetPlayerFromServerId | Gets a local client's Player ID from its server ID counterpart, assuming the passed serverId exists on the client. |
| GetPlayerInvincible_2 | Unlike GET_PLAYER_INVINCIBLE this native gets both [SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED](#_0x6BC97F4F4BB3C04B |
| GetPlayerKillFallHeight | A getter for SET_PLAYER_KILL_FALL_HEIGHT. |
| GetPlayerMaxStamina | playerId: The player index. |
| GetPlayerMeleeWeaponDefenseModifier | A getter for SET_PLAYER_MELEE_WEAPON_DEFENSE_MODIFIER. |
| GetPlayerServerId | player: |
| GetPlayerStamina | playerId: The player index. |
| GetPlayerVehicleDamageModifier | A getter for SET_PLAYER_VEHICLE_DAMAGE_MODIFIER. |
| GetPlayerVehicleDefenseModifier | A getter for SET_PLAYER_VEHICLE_DEFENSE_MODIFIER. |
| GetRandomVehicleDensityMultiplier | A getter for SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME. Same as vehicle density multiplier. |
| GetRopeFlags | c enum eRopeFlags |
| GetRopeLengthChangeRate | rope: The rope to get the length change rate for. |
| GetRopeTimeMultiplier | rope: The rope to get the time multiplier for. |
| GetRopeUpdateOrder | rope: The rope to get the update order for. |
| GetRuntimeTextureHeight | Gets the height of the specified runtime texture. |
| GetRuntimeTexturePitch | Gets the row pitch of the specified runtime texture, for use when creating data for SET_RUNTIME_TEXTURE_ARGB_DATA. |
| GetRuntimeTextureWidth | Gets the width of the specified runtime texture. |
| GetScenarioPedDensityMultiplier | A getter for SET_SCENARIO_PED_DENSITY_MULTIPLIER_THIS_FRAME. |
| GetShapeTestResultIncludingMaterial | Returns the result of a shape test, also returning the material of any touched surface. |
| GetTimecycleModifierCount | lua local count = GetTimecycleModifierCount() print("we have " .. count .. "timecycle modifiers loaded") |
| GetTimecycleModifierIndexByName | lua local modifierIndex = GetTimecycleModifierIndexByName("underwater") local currentIndex = GetTimecycleModifierIndex() |
| GetTimecycleModifierNameByIndex | lua local modifierIndex = GetTimecycleModifierIndex() |
| GetTimecycleModifierStrength | A getter for SET_TIMECYCLE_MODIFIER_STRENGTH. |
| GetTimecycleModifierVar | lua local modifierName = "superDARK" local varName = "postfx_noise" |
| GetTimecycleModifierVarCount | lua local varCount = GetTimecycleModifierVarCount("underwater") |
| GetTimecycleModifierVarNameByIndex | lua local varCount = GetTimecycleModifierVarCount("underwater") |
| GetTimecycleVarCount | Returns the amount of variables available to be applied on timecycle modifiers. |
| GetTimecycleVarDefaultValueByIndex | See GET_TIMECYCLE_VAR_COUNT. |
| GetTimecycleVarNameByIndex | See GET_TIMECYCLE_VAR_COUNT. |
| GetTrackBrakingDistance | track: The track id (between 0 - 27) |
| GetTrackMaxSpeed | track: The track id (between 0 - 27) |
| GetTrackNodeCoords | Gets the coordinates of a specific track node. |
| GetTrackNodeCount | Gets the specified tracks node count. |
| GetTrainCurrentTrackNode | train: The target train. |
| GetTrainDoorCount | Gets the door count for the specified train. |
| GetTrainDoorOpenRatio | Gets the ratio that a door is open for on a train. |
| GetTrainSpeed | Gets the speed the train is currently going. |
| GetVehicleAlarmTimeLeft | vehicle: |
| GetVehicleCheatPowerIncrease | A getter for SET_VEHICLE_CHEAT_POWER_INCREASE. |
| GetVehicleClutch | vehicle: |
| GetVehicleCurrentGear | vehicle: |
| GetVehicleCurrentRpm | vehicle: |
| GetVehicleDashboardBoost | — |
| GetVehicleDashboardCurrentGear | Retrieves the current gear displayed on the dashboard of the vehicle the player is in, returned as a float. This value represents the gear s |
| GetVehicleDashboardFuel | — |
| GetVehicleDashboardLights | Gets the state of the player vehicle's dashboard lights as a bit set indicator_left = 1 indicator_right = 2 handbrakeLight = 4 engineLight = |
| GetVehicleDashboardOilPressure | — |
| GetVehicleDashboardOilTemp | — |
| GetVehicleDashboardRPM | float 0 to ~1.1 representing the angle of the rpm gauge on the player's vehicle dashboard |
| GetVehicleDashboardSpeed | vehicle: |
| GetVehicleDashboardTemp | — |
| GetVehicleDashboardVacuum | — |
| GetVehicleDensityMultiplier | A getter for SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME. |
| GetVehicleDrawnWheelAngleMult | Gets a vehicle's multiplier used with a wheel's GET_VEHICLE_WHEEL_STEERING_ANGLE to determine the angle the wheel is rendered. |
| GetVehicleEngineTemperature | vehicle: |
| GetVehicleFuelLevel | vehicle: |
| GetVehicleGearRatio | Gets vehicles gear ratio on choosen gear. |
| GetVehicleGravityAmount | vehicle: |
| GetVehicleHandlingFloat | Returns the effective handling data of a vehicle as a floating-point value. Example: local fSteeringLock = GetVehicleHandlingFloat(vehicle, |
| GetVehicleHandlingInt | Returns the effective handling data of a vehicle as an integer value. Example: local modelFlags = GetVehicleHandlingInt(vehicle, 'CHandlingD |
| GetVehicleHandlingVector | Returns the effective handling data of a vehicle as a vector value. Example: local inertiaMultiplier = GetVehicleHandlingVector(vehicle, 'CH |
| GetVehicleHasFlag | Note: Flags are not the same based on your gamebuild. Please see [here](https://docs.fivem.net/docs/game-references/vehicle-references/vehic |
| GetVehicleHighGear | vehicle: |
| GetVehicleIndicatorLights | Gets the vehicle indicator light state. 0 = off, 1 = left, 2 = right, 3 = both |
| GetVehicleLightMultiplier | vehicle: |
| GetVehicleNextGear | vehicle: |
| GetVehicleNumberOfWheels | vehicle: |
| GetVehicleOilLevel | vehicle: |
| GetVehicleSteeringScale | vehicle: |
| GetVehicleThrottleOffset | vehicle: |
| GetVehicleTopSpeedModifier | A getter for MODIFY_VEHICLE_TOP_SPEED. Returns -1.0 if a modifier is not set. |
| GetVehicleTurboPressure | vehicle: |
| GetVehicleTypeRaw | Returns the model type of the vehicle as defined by: |
| GetVehicleWheelBrakePressure | Gets brake pressure of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. Normal values around 1.0 |
| GetVehicleWheelFlags | Gets the flags of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| GetVehicleWheelHealth | vehicle: wheelIndex: |
| GetVehicleWheelIsPowered | Gets whether the wheel is powered. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. This is a shortcut to |
| GetVehicleWheelPower | Gets power being sent to a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| GetVehicleWheelRimColliderSize | vehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3. |
| GetVehicleWheelRotationSpeed | Gets the rotation speed of a wheel. This is used internally to calcuate GET_VEHICLE_WHEEL_SPEED. Max number of wheels can be retrieved with |
| GetVehicleWheelSize | Returns vehicle's wheels' size (size is the same for all the wheels, cannot get/set specific wheel of vehicle). Only works on non-default wh |
| GetVehicleWheelSpeed | Gets speed of a wheel at the tyre. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| GetVehicleWheelSteeringAngle | Gets steering angle of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| GetVehicleWheelSurfaceMaterial | vehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3. |
| GetVehicleWheelSuspensionCompression | Gets the current suspension compression of a wheel. Returns a positive value. 0 means the suspension is fully extended, the wheel is off the |
| GetVehicleWheelTireColliderSize | vehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3. |
| GetVehicleWheelTireColliderWidth | vehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3. |
| GetVehicleWheelTractionVectorLength | Gets the traction vector length of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| GetVehicleWheelWidth | Returns vehicle's wheels' width (width is the same for all the wheels, cannot get/set specific wheel of vehicle). Only works on non-default |
| GetVehicleWheelXOffset | Returns the offset of the specified wheel relative to the wheel's axle center. |
| GetVehicleWheelYRotation | vehicle: wheelIndex: |
| GetVehicleWheelieState | List of known states: 1: Not wheeling. 65: Vehicle is ready to do wheelie (burnouting). 129: Vehicle is doing wheelie. |
| GetVehicleXenonLightsCustomColor | Returns vehicle xenon lights custom RGB color values. Do note this native doesn't return non-RGB colors that was set with [_SET_VEHICLE_XENO |
| GetVehicleXmasSnowFactor | A getter for SET_VEHICLE_XMAS_SNOW_FACTOR. Returns the grip factor for the vehicles wheels during xmas weather. default valu |
| GetVisualSettingFloat | A getter for SET_VISUAL_SETTING_FLOAT. |
| GetWaterQuadAlpha | lua local success, a0, a1, a2, a3 = GetWaterQuadAlpha(0) |
| GetWaterQuadAtCoords | This native returns the index of a water quad if the given point is inside its bounds. |
| GetWaterQuadAtCoords_3d | This alternative implementation of GetWaterQuadAtCoords also checks the height of the water level. |
| GetWaterQuadBounds | lua local success, minX, minY, maxX, maxY = GetWaterQuadBounds(1) |
| GetWaterQuadCount | lua local waterQuadCount = GetWaterQuadCount() ## Возвращает Returns the amount of water quads loaded. |
| GetWaterQuadHasLimitedDepth | lua local success, hasLimitedDepth = GetWaterQuadHasLimitedDepth(0) |
| GetWaterQuadIsInvisible | lua local success, isInvisible = GetWaterQuadIsInvisible(0) |
| GetWaterQuadLevel | level is defined as "z" in water.xml |
| GetWaterQuadNoStencil | lua local success, noStencil = GetWaterQuadNoStencil(0) |
| GetWaterQuadType | Valid type definitions: |
| GetWaveQuadAmplitude | lua local success, amplitude = GetWaveQuadAmplitude(1) |
| GetWaveQuadAtCoords | This native returns the index of a wave quad if the given point is inside its bounds. |
| GetWaveQuadBounds | lua local success, minX, minY, maxX, maxY = GetWaveQuadBounds(1) |
| GetWaveQuadCount | lua local waveQuadCount = GetWaveQuadCount() ## Возвращает Returns the amount of wave quads loaded. |
| GetWaveQuadDirection | lua local success, directionX, directionY = GetWaveQuadDirection(1) |
| GetWeaponAccuracySpread | A getter for the accuracy spread of a weapon. |
| GetWeaponAnimationOverride | A getter for SET_WEAPON_ANIMATION_OVERRIDE. |
| GetWeaponComponentAccuracyModifier | A getter for CWeaponAccuracyModifier in a weapon component. |
| GetWeaponComponentCameraHash | A getter for CameraHash in a weapon scope component. |
| GetWeaponComponentClipSize | A getter for ClipSize in a weapon component. |
| GetWeaponComponentDamageModifier | A getter for CWeaponDamageModifier in a weapon component. |
| GetWeaponComponentRangeDamageModifier | A getter for CWeaponFallOffModifier damage modifier value in a weapon component. |
| GetWeaponComponentRangeModifier | A getter for CWeaponFallOffModifier range modifier value in a weapon component. |
| GetWeaponComponentReticuleHash | A getter for ReticuleHash in a weapon scope component. |
| GetWeaponDamageModifier | A getter for _SET_WEAPON_DAMAGE_MODIFIER. |
| GetWeaponRecoilShakeAmplitude | A getter for the recoil shake amplitude of a weapon. |
| GetWorldCoordFromScreenCoord | Converts a screen coordinate into its relative world coordinate. |
| HasMinimapOverlayLoaded | Returns whether or not the specific minimap overlay has loaded. |
| IsBigmapActive | Returns true if the minimap is currently expanded. False if it's the normal minimap state. Use IsBigmapFull to check if the |
| IsBigmapFull | Returns true if the full map is currently revealed on the minimap. Use IsBigmapActive to check if the minimap is currently e |
| IsDisabledRawKeyDown | Gets if the specified rawKeyIndex is pressed down, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME. |
| IsDisabledRawKeyPressed | Gets if the specified rawKeyIndex is pressed, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME. |
| IsDisabledRawKeyReleased | Gets if the specified rawKeyIndex was released, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME. |
| IsDisabledRawKeyUp | Gets if the specified rawKeyIndex is up, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME. |
| IsDuiAvailable | Returns whether or not a browser is created for a specified DUI browser object. |
| IsGameEnhancedVersion | Returns whether this script is running in GTAV Enhanced or not. |
| IsNuiFocusKeepingInput | Checks if keyboard input is enabled during NUI focus using SET_NUI_FOCUS_KEEP_INPUT. |
| IsNuiFocused | Returns the current NUI focus state previously set with SET_NUI_FOCUS. |
| IsPedCollectionComponentVariationGen9Exclusive | An alternative to IS_PED_COMPONENT_VARIATION_GEN9_EXCLUSIVE that uses local collection indexing instead of the global one. |
| IsPedCollectionComponentVariationValid | An alternative to IS_PED_COMPONENT_VARIATION_VALID that uses local collection indexing instead of the global one. |
| IsPedComponentVariationGen9Exclusive | lua local ped = PlayerPedId() |
| IsRawKeyDown | Gets if the specified rawKeyIndex is pressed down on the keyboard. |
| IsRawKeyPressed | Gets if the specified rawKeyIndex is pressed on the keyboard. |
| IsRawKeyReleased | Gets if the specified rawKeyIndex was just released on the keyboard. |
| IsRawKeyUp | Gets if the specified rawKeyIndex is up on the keyboard. |
| IsStreamingFileReady | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| IsTrackEnabled | Getter for SET_TRACK_ENABLED |
| IsTrackSwitchedOff | Getter for SWITCH_TRAIN_TRACK. Determines if ambient trains are able to spawn on this track. |
| IsVehicleAlarmSet | vehicle: |
| IsVehicleInteriorLightOn | vehicle: |
| IsVehicleNeedsToBeHotwired | vehicle: |
| IsVehiclePreviouslyOwnedByPlayer | vehicle: |
| IsVehicleWanted | vehicle: |
| IsVehicleWheelBrokenOff | Getter for BREAK_OFF_VEHICLE_WHEEL. |
| LoadWaterFromPath | Define the xml in a resources fxmanifest, under the file(s) section. |
| MumbleAddVoiceChannelListen | Starts listening to the specified channel, when available. |
| MumbleAddVoiceTargetChannel | Adds the specified channel to the target list for the specified Mumble voice target ID. |
| MumbleAddVoiceTargetPlayer | Adds the specified player to the target list for the specified Mumble voice target ID. |
| MumbleAddVoiceTargetPlayerByServerId | Adds the specified player to the target list for the specified Mumble voice target ID. |
| MumbleClearVoiceChannel | — |
| MumbleClearVoiceTarget | Clears the target list for the specified Mumble voice target ID. |
| MumbleClearVoiceTargetChannels | Clears channels from the target list for the specified Mumble voice target ID. |
| MumbleClearVoiceTargetPlayers | Clears players from the target list for the specified Mumble voice target ID. |
| MumbleDoesChannelExist | Check whether specified channel exists on the Mumble server. |
| MumbleGetTalkerProximity | Talker proximity value. |
| MumbleGetVoiceChannelFromServerId | Returns the mumble voice channel from a player's server id. |
| MumbleIsActive | True if the player has enabled voice chat. |
| MumbleIsConnected | This native will return true if the user succesfully connected to the voice server. If the user disabled the voice-chat setting it will retu |
| MumbleIsPlayerTalking | player: The target player. |
| MumbleRemoveVoiceChannelListen | Stops listening to the specified channel. |
| MumbleRemoveVoiceTargetChannel | Removes the specified voice channel from the user's voice targets. |
| MumbleRemoveVoiceTargetPlayer | Removes the specified player from the user's voice targets. |
| MumbleRemoveVoiceTargetPlayerByServerId | Removes the specified player from the user's voice targets. |
| MumbleSetActive | state: Voice chat state. |
| MumbleSetAudioInputDistance | Sets the current input distance. The player will be able to talk to other players within this distance. |
| MumbleSetAudioInputIntent | Use this native to disable noise suppression and high pass filters. |
| MumbleSetAudioOutputDistance | Sets the current output distance. The player will be able to hear other players talking within this distance. |
| MumbleSetServerAddress | Changes the Mumble server address to connect to, and reconnects to the new address. |
| MumbleSetSubmixForServerId | Sets the audio submix ID for a specified player using Mumble 'Native Audio' functionality. |
| MumbleSetTalkerProximity | value: Proximity value. |
| MumbleSetVoiceChannel | channel: A game voice channel ID. |
| MumbleSetVoiceTarget | Sets the current Mumble voice target ID to broadcast voice to. |
| MumbleSetVolumeOverride | Overrides the output volume for a particular player on Mumble. This will also bypass 3D audio and distance calculations. -1.0 to reset the o |
| MumbleSetVolumeOverrideByServerId | Overrides the output volume for a particular player with the specified server id and player name on Mumble. This will also bypass 3D audio a |
| NetworkDoesEntityExistWithNetworkId | netId: The network id to check |
| OnesyncEnableRemoteAttachmentSanitization | Toggles a check that prevents attaching (networked) entities to remotely owned peds. This is disabled by default. |
| OverridePedsCanStandOnTopFlag | Sets whether peds can stand on top of all vehicles without falling off. |
| OverridePedsUseDefaultDriveByClipset | Allows the bypassing of default game behavior that prevents the use of SET_PED_DRIVE_BY_CLIPSET_OVERRIDE in certain |
| OverridePopGroups | Replaces the popgroups (CPopGroupList) meta file with the file in the specified path. |
| OverrideReactionToVehicleSiren | Setting the state to true and a value between 0 and 2 will cause pedestrian vehicles to react accordingly to sirens. |
| OverrideVehiclePedsCanStandOnTopFlag | Overrides whether or not peds can stand on top of the specified vehicle. |
| PrepareLight | Create a new light with specified type, flags, position, color, and intensity. |
| RegisterArchetypes | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| RegisterFontFile | Registers a specified .gfx file as GFx font library. The .gfx file has to be registered with the streamer already. |
| RegisterFontId | Registers a specified font name for use with text draw commands. |
| RegisterKeyMapping | Registers a key mapping for the current resource. |
| RegisterNuiCallback | callbackType: callback: |
| RegisterNuiCallbackType | callbackType: |
| RegisterRawKeymap | Registers a keymap that will be triggered whenever rawKeyIndex is pressed or released. |
| RegisterRawNuiCallback | callbackType: callback: |
| RegisterRopeData | Registers a custom rope data with the game. For guidance on what these values should be use common:/data/ropedata.xml as a reference. Return |
| RegisterStreamingFileFromCache | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| RegisterStreamingFileFromKvs | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| RegisterStreamingFileFromUrl | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| RegisterTrackJunction | Registers a track junction that when enabled will cause a train on the defined trackIndex, node and direction to change its current track in |
| RemapRawKeymap | Remaps the keymap bound to keymapName to newRawKeyIndex |
| RemoveDryVolume | Removes a dry volume from the game session. See CREATE_DRY_VOLUME for more info |
| RemoveHealthConfig | Removes health config. |
| RemoveReplaceTexture | Experimental natives, please do not use in a live environment. |
| RemoveTexture | Removes the specified texture and remove it from the ped. Unlike 0x6BEFAA907B076859 which only marks the texture as "can be reused" (and kee |
| RemoveTimecycleModifier | lua local modifierName = "my_awesome_timecycle" RemoveTimecycleModifier(modifierName) |
| RemoveTimecycleModifierVar | lua local modifierName = "superDARK" local varName = "postfx_noise" |
| RemoveTrackJunction | Removes the specified track junction. |
| RequestResourceFileSet | Requests a resource file set with the specified name to be downloaded and mounted on top of the current resource. |
| ResetFlyThroughWindscreenParams | Resets parameters which is used by the game for checking is ped needs to fly through windscreen after a crash to default values. |
| ResetMapZoomDataLevel | Resets values from the zoom level data by index to defaults from mapzoomdata.meta. |
| ResetPedModelPersonality | Restores an overridden ped model personality type to the default value. |
| ResetVehiclePedsCanStandOnTopFlag | Resets whether or not peds can stand on top of the specified vehicle. |
| ResetWater | Resets the water to the games default water.xml. |
| SendDuiMessage | Sends a message to the specific DUI root page. This is similar to SEND_NUI_MESSAGE. |
| SendDuiMouseDown | Injects a 'mouse down' event for a DUI object. Coordinates are expected to be set using SEND_DUI_MOUSE_MOVE. |
| SendDuiMouseMove | Injects a 'mouse move' event for a DUI object. Coordinates are in browser space. |
| SendDuiMouseUp | Injects a 'mouse up' event for a DUI object. Coordinates are expected to be set using SEND_DUI_MOUSE_MOVE. |
| SendDuiMouseWheel | Injects a 'mouse wheel' event for a DUI object. |
| SendLoadingScreenMessage | Sends a message to the loadingScreen NUI frame, which contains the HTML page referenced in loadscreen resources. |
| SendNuiMessage | jsonString: |
| SetAimCooldown | Adds a cooldown between instances of moving and then aiming. Can be optionally used to hinder 'speedboosting' To turn off, set value to 0 |
| SetAudioSubmixEffectParamFloat | Sets a floating-point parameter for a submix effect. |
| SetAudioSubmixEffectParamInt | Sets an integer parameter for a submix effect. |
| SetAudioSubmixEffectRadioFx | Assigns a RadioFX effect to a submix effect slot. |
| SetAudioSubmixOutputVolumes | Sets the volumes for the sound channels in a submix effect. Values can be between 0.0 and 1.0. Channel 5 and channel 6 are not used in voice |
| SetBackfaceculling | toggle: |
| SetCalmingQuadBounds | lua local success = SetCalmingQuadBounds(1, -500, -500, 500, 500) |
| SetCalmingQuadDampening | lua local success = SetCalmingQuadDampening(0, 1.0) |
| SetClientConfigBool | c enum ClientConfigFlag |
| SetCursorLocation | x: X position. y: Y position. |
| SetDefaultVehicleNumberPlateTextPattern | Sets the default number plate text pattern for vehicles seen on the local client with the specified plate index as their default index (pl |
| SetDiscordAppId | This native sets the app id for the discord rich presence implementation. |
| SetDiscordRichPresenceAction | Sets a clickable button to be displayed in a player's Discord rich presence. |
| SetDiscordRichPresenceAsset | This native sets the image asset for the discord rich presence implementation. |
| SetDiscordRichPresenceAssetSmall | This native sets the small image asset for the discord rich presence implementation. |
| SetDiscordRichPresenceAssetSmallText | This native sets the hover text of the small image asset for the discord rich presence implementation. |
| SetDiscordRichPresenceAssetText | This native sets the hover text of the image asset for the discord rich presence implementation. |
| SetDrawOrigin | Sets the on-screen drawing origin for draw-functions in world coordinates. |
| SetDuiUrl | Navigates the specified DUI browser to a different URL. |
| SetEmitterProbeLength | Allows StaticEmitter's without a linked entity to make use of environment features like occlusion and reverb even if they are located higher |
| SetFallDamageLandOnFootMultiplier | A setter for GET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER. |
| SetFallDamageMultiplier | A setter for GET_FALL_DAMAGE_MULTIPLIER. |
| SetFlashLightKeepOnWhileMoving | Allows Weapon-Flashlight beams to stay visible while moving. Normally it only stays on while aiming. |
| SetFlyThroughWindscreenParams | Sets some in-game parameters which is used for checks is ped needs to fly through windscreen after a crash. |
| SetFogVolumeRenderDisabled | This completely disables rendering of fog volumes (vfxfogvolumeinfo.ymt). |
| SetFuelConsumptionRateMultiplier | Sets fuel consumption rate multiplier for all vehicles operated by a player. This is a way to slow down or speed up fuel consumption for all |
| SetFuelConsumptionState | Turns on and off fuel consumption in all vehicles operated by a player. NPC operated vehicles will not consume fuel to avoid traffic disrupt |
| SetGlobalPassengerMassMultiplier | massMul: Weight of each passenger (not counting the driver) as a percentage of vehicle mass. Is applied to all vehicles. Default value is 0. |
| SetHandlingField | Sets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp |
| SetHandlingFloat | Sets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp |
| SetHandlingInt | Sets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. |
| SetHandlingVector | Sets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp |
| SetHealthConfigDefaultArmor | Sets default armor value for specific health config. |
| SetHealthConfigDefaultEndurance | Sets default endurance value for specific health config. |
| SetHealthConfigDefaultHealth | Sets default health value for specific health config. |
| SetHealthConfigDogTakedownThreshold | Sets default dog takedown threshold value for specific health config. |
| SetHealthConfigDyingThreshold | Sets default dying health threshold value for specific health config. |
| SetHealthConfigFatiguedThreshold | Sets default fatigued health threshold value for specific health config. |
| SetHealthConfigHurtThreshold | Sets default hurt health threshold value for specific health config. |
| SetHealthConfigInjuredThreshold | Sets default injured health threshold value for specific health config. |
| SetHealthConfigInvincible | Sets default invincible value for specific health config. |
| SetHealthConfigMeleeFatalAttack | Sets default melee cardinal fatal attack value for specific health config. |
| SetHealthConfigWritheFromBulletThreshold | Sets default writhe from bullet threshold value for specific health config. |
| SetHudComponentAlign | See SET_SCRIPT_GFX_ALIGN for details about how gfx align works. |
| SetHudComponentSize | id: The hud component id. x: New size X. y: New size Y. |
| SetIgnoreVehicleOwnershipForStowing | Sets whether or not ownership checks should be performed while trying to stow a carriable on a hunting wagon. |
| SetInteriorPortalCornerPosition | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| SetInteriorPortalEntityFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0 |
| SetInteriorPortalFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| SetInteriorPortalRoomFrom | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| SetInteriorPortalRoomTo | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| SetInteriorProbeLength | Overwrite the games default CPortalTracker interior detection range. This fixes potentially unwanted behaviour in the base game and allows y |
| SetInteriorRoomExtents | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) |
| SetInteriorRoomFlag | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| SetInteriorRoomTimecycle | lua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc |
| SetKeyMappingHideResources | Toggles the visibility of resource names in the FiveM key mapping page. |
| SetKillFallHeight | A setter for GET_KILL_FALL_HEIGHT. |
| SetLightAlpha | Set the alpha transparency of the light. |
| SetLightAo | Set ambient occlusion (AO) parameters for a specified light. |
| SetLightCapsuleSize | Set the capsule size of a specified light. |
| SetLightClipRect | Set the clip rectangle for a created light. |
| SetLightColor | Set the color of a specified light. |
| SetLightCone | Set the inner and outer cone angles of a specified light. |
| SetLightCoords | Set the world coordinates of a specified light. |
| SetLightDirection | Set the forward and tangent direction vectors for an existing light, allowing control over its orientation (useful for spotlights and direct |
| SetLightExtraflags | Set additional configuration flags for an existing light |
| SetLightFadeDistance | Set the fade distance. |
| SetLightFalloff | Adjust the falloff parameter for an existing light, affecting how light intensity decreases over distance. |
| SetLightFlags | Set or update specific flags for a created light to control its behavior or properties. |
| SetLightHeadlight | Set the headlight properties of a created light, adjusting its intensity and range. |
| SetLightIntensity | Set the intensity of an existing light. |
| SetLightInterior | Set the interior and room where the light should be active. |
| SetLightPlane | Set the plane parameters for a light. |
| SetLightRadius | Set the radius of a created light. |
| SetLightShadowDetails | Set the shadow details for a created light. |
| SetLightShadowFadeDistance | Set the fade distance for the shadows of a created light. |
| SetLightSpecularFadeDistance | Set the specular fade distance for a created light. |
| SetLightTexture | Assign a texture to an existing light source, allowing custom light shapes or patterns using textures from streaming assets. |
| SetLightType | Change the light type of a already created light. Certain light type needs more configurations to work properly (Like direction, flags or si |
| SetLightVolumeDetails | Set volumetric light properties for an existing light, enabling custom volumetric effects such as fog-like glow. |
| SetLightVolumetricFadeDistance | Set the fade distance for volumetric lightingn. |
| SetManualShutdownLoadingScreenNui | Note: This native is deprecated and doesn't work anymore. Use [loadscreen_manual_shutdown](https://docs.fivem.net/docs/scripting-reference/r |
| SetMapZoomDataLevel | Sets values to the zoom level data by index. |
| SetMillisecondsPerGameMinute | Overrides how many real ms are equal to one game minute. A setter for GetMillisecondsPerGameMinute. |
| SetMinimapClipType | Sets the type for the minimap blip clipping object to be either rectangular or rounded. |
| SetMinimapComponentPosition | Overrides the minimap component data (from common:/data/ui/frontend.xml) for a specified component. |
| SetMinimapOverlayDisplay | Sets the display info for a minimap overlay. |
| SetMinimapType | Possible Types: 0 = Off, 1 = Regular, 2 = Expanded, 3 = Simple, |
| SetModelHeadlightConfiguration | This native is deprecated and does nothing! |
| SetMpGamerTagsUseVehicleBehavior | Sets whether all tags should group (normal game behavior) or should remain independent and above each ped's respective head when in a vehicl |
| SetMpGamerTagsVisibleDistance | Sets the maximum distance at which all tags will be visible and which beyond will not be displayed. Distance is measured from the camera pos |
| SetNetworkWalkMode | — |
| SetNuiFocus | hasFocus: hasCursor: |
| SetNuiFocusKeepInput | keepInput: |
| SetNuiZindex | Set the z-index of the NUI resource. |
| SetPedCollectionComponentVariation | An alternative to SET_PED_COMPONENT_VARIATION that uses local collection indexing instead of the global one. |
| SetPedCollectionPreloadPropData | An alternative to SET_PED_PRELOAD_PROP_DATA that uses local collection indexing instead of the global one. |
| SetPedCollectionPreloadVariationData | An alternative to SET_PED_PRELOAD_VARIATION_DATA that uses local collection indexing instead of the global one. |
| SetPedCollectionPropIndex | An alternative to SET_PED_PROP_INDEX that uses local collection indexing instead of the global one. |
| SetPedMeleeCombatLimits | Override the limits on the number and types of melee combatants. The game is limited to at most ten combatants among the three types: primar |
| SetPedModelHealthConfig | Sets a ped model's health config. Takes effect only after setting player model with SET_PLAYER_MODEL. |
| SetPedModelPersonality | Overrides a ped model personality type. |
| SetPedTurningThresholds | Purpose: The game's default values for these make shooting while traveling Left quite a bit slower than shooting while traveling right (This |
| SetPlayerKillFallHeight | A setter for GET_PLAYER_KILL_FALL_HEIGHT. |
| SetPlayerMaxStamina | playerId: The player index maxStamina: The value you want to set |
| SetPlayerStamina | playerId: The player index stamina: The value you want to set |
| SetPlayerTalkingOverride | the status of default voip system. It affects on NETWORK_IS_PLAYER_TALKING and mp_facial animation. This function doesn't need to be called |
| SetReactionToVehicleSirenDisabled | This completely disables pedestrian vehicles from reacting to sirens. They will not try to do any maneuver to evade. |
| SetRichPresence | Sets the player's rich presence detail state for social platform providers to a specified string. |
| SetRopeLengthChangeRate | Set's the ropes length change rate, which is the speed that rope should wind if started. |
| SetRopesCreateNetworkWorldState | Toggles whether the usage of ADD_ROPE should create an underlying CNetworkRopeWorldStateData. By default this is set |
| SetRuntimeTextureArgbData | tex: buffer: length: |
| SetRuntimeTextureImage | Replaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL. |
| SetRuntimeTexturePixel | Sets a pixel in the specified runtime texture. This will have to be committed using COMMIT_RUNTIME_TEXTURE to have any effect. |
| SetSnakeoilForEntry | name: path: data: |
| SetTextChatEnabled | enabled: |
| SetTextFontForCurrentCommand | Sets the text font for the current text drawing command. |
| SetTextJustification | justifyType: |
| SetTextWrap | start: end: |
| SetTimecycleModifierVar | lua local modifierName = "superDARK" local varName = "postfx_noise" |
| SetTrackBrakingDistance | Sets the braking distance of the track. Used by trains to determine the point to slow down when entering a station. |
| SetTrackEnabled | Toggles the track being active. If disabled mission trains will not be able to spawn on this track and will look for the next closest track |
| SetTrackJunctionActive | Sets the state of a track junction. |
| SetTrackMaxSpeed | Sets the max speed for the train tracks. Used by ambient trains and for station calculations |
| SetTrainDoorOpenRatio | Sets the ratio that a door is open for on a train. |
| SetTrainState | train: The train handle state: The trains new state |
| SetTrainStopAtStations | Toggles a train's ability to stop at stations |
| SetTrainsForceDoorsOpen | Enables or disables whether train doors should be forced open whilst a player is inside the train. This is enabled by default in multiplayer |
| SetVehicleAlarmTimeLeft | vehicle: time: |
| SetVehicleAutoRepairDisabled | Disables the vehicle from being repaired when a vehicle extra is enabled. |
| SetVehicleClutch | vehicle: clutch: |
| SetVehicleCurrentGear | vehicle: The vehicle handle. gear: The gear you want the vehicle to use. |
| SetVehicleCurrentRpm | vehicle: rpm: |
| SetVehicleEngineTemperature | vehicle: temperature: |
| SetVehicleFlag | This native is a setter for GET_VEHICLE_HAS_FLAG. |
| SetVehicleFuelLevel | vehicle: level: |
| SetVehicleGearRatio | Sets the vehicles gear ratio on choosen gear, reverse gear needs to be a negative float and forward moving gear needs to be a positive float |
| SetVehicleGravityAmount | vehicle: gravity: |
| SetVehicleHandlingField | Sets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_FIELD, this might requir |
| SetVehicleHandlingFloat | Sets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_FLOAT, this might requir |
| SetVehicleHandlingInt | Sets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_INT, this might require |
| SetVehicleHandlingVector | Sets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_VECTOR, this might requi |
| SetVehicleHighGear | vehicle: gear: |
| SetVehicleNextGear | vehicle: The vehicle handle. nextGear: The vehicles next gear. |
| SetVehicleNitroPtfxRange | Sets the maximum distance in which _SET_VEHICLE_NITRO_ENABLED PTFX are rendered. Distance is measured from the camer |
| SetVehicleOilLevel | vehicle: level: |
| SetVehiclePitchBias | Set the vehicle's pitch bias. Only works on planes. |
| SetVehicleRollBias | Set the vehicle's roll bias. Only works on planes. |
| SetVehicleSteeringAngle | vehicle: angle: |
| SetVehicleSteeringScale | vehicle: scale: |
| SetVehicleSuspensionHeight | Sets the height of the vehicle's suspension. This changes the same value set by Suspension in the mod shop. Negatives values raise the car. |
| SetVehicleTurboPressure | vehicle: pressure: |
| SetVehicleWheelBrakePressure | Sets brake pressure of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. Normal values around 1.0 |
| SetVehicleWheelFlags | Sets the flags of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| SetVehicleWheelHealth | vehicle: wheelIndex: health: |
| SetVehicleWheelIsPowered | Sets whether the wheel is powered. On all wheel drive cars this works to change which wheels receive power, but if a car's fDriveBiasFront d |
| SetVehicleWheelPower | Sets power being sent to a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| SetVehicleWheelRimColliderSize | Not sure what this changes, probably determines physical rim size in case the tire is blown. |
| SetVehicleWheelRotationSpeed | Sets the rotation speed of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| SetVehicleWheelSize | Sets vehicle's wheels' size (size is the same for all the wheels, cannot get/set specific wheel of vehicle). Only works on non-default wheel |
| SetVehicleWheelTireColliderSize | Use along with SetVehicleWheelSize to resize the wheels (this native sets the collider size affecting physics while SetVehicleWheelSize will |
| SetVehicleWheelTireColliderWidth | Use along with SetVehicleWheelWidth to resize the wheels (this native sets the collider width affecting physics while SetVehicleWheelWidth w |
| SetVehicleWheelTractionVectorLength | Sets the traction vector length of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS. |
| SetVehicleWheelWidth | Sets vehicle's wheels' width (width is the same for all the wheels, cannot get/set specific wheel of vehicle). Only works on non-default whe |
| SetVehicleWheelXOffset | Adjusts the offset of the specified wheel relative to the wheel's axle center. Needs to be called every frame in order to function properly, |
| SetVehicleWheelYRotation | vehicle: wheelIndex: value: |
| SetVehicleWheelieState | Example script: https://pastebin.com/J6XGbkCW |
| SetVehicleXenonLightsCustomColor | Sets custom vehicle xenon lights color, allowing to use RGB palette. The game will ignore lights color set by [_SET_VEHICLE_XENON_LIGHTS_COL |
| SetVehicleXmasSnowFactor | gripFactor: amount of grip strength vehicle wheels have when xmas weather is active, 0.0 being normal weather grip. 0.2 is the default. |
| SetVisualSettingFloat | Overrides a floating point value from visualsettings.dat temporarily. |
| SetWaterAreaClipRect | Sets world clip boundaries for water quads file (water.xml, water_heistisland.xml) Used internally by LOAD_GLOBAL_WATER_FILE |
| SetWaterQuadAlpha | lua local success = SetWaterQuadAlpha(0, 5, 5, 5, 5) |
| SetWaterQuadBounds | This native allows you to update the bounds of a specified water quad index. |
| SetWaterQuadHasLimitedDepth | lua local success = SetWaterQuadHasLimitedDepth(0, true) |
| SetWaterQuadIsInvisible | lua local success = SetWaterQuadIsInvisible(0, true) |
| SetWaterQuadLevel | lua local success = SetWaterQuadLevel(0, 55.0) |
| SetWaterQuadNoStencil | lua local success = SetWaterQuadNoStencil(0, true) |
| SetWaterQuadType | This native allows you to update the water quad type. |
| SetWaveQuadAmplitude | lua local success = SetWaveQuadAmplitude(0, 1.0) |
| SetWaveQuadBounds | This native allows you to update the bounds of a specified water quad index. |
| SetWaveQuadDirection | directionX/Y should be constrained between -1.0 and 1.0 A positive value will create the wave starting at min and rolling towards max A nega |
| SetWeaponAccuracySpread | A setter for the accuracy spread of a weapon. |
| SetWeaponRecoilShakeAmplitude | A setter for the recoil shake amplitude of a weapon. |
| SetWeaponsNoAimBlocking | Disables weapons aim blocking due to environment for local player. For non-player peds [SET_PED_ENABLE_WEAPON_BLOCKING](#_0x97A790315D3831FD |
| SetWeaponsNoAutoReload | Disables the game's built-in auto-reloading. |
| SetWeaponsNoAutoSwap | Disables autoswapping to another weapon when the current weapon runs out of ammo. |
| SetWeatherCycleEntry | Sets the name and duration of a weather cycle. Changes are not applied until 'APPLY_WEATHER_CYCLES' is called. |
| SetWeatherOwnedByNetwork | Sets whether or not the weather should be owned by the network subsystem. |
| SetWetClothPinRadiusScale | Modifies the radius scale used in the simulation of wet cloth physics. This affects how cloth behaves when wet, changing how it sticks or re |
| ShutdownLoadingScreenNui | Shuts down the loadingScreen NUI frame, similarly to SHUTDOWN_LOADING_SCREEN. |
| TriggerLatentServerEventInternal | The backing function for TriggerLatentServerEvent. |
| TriggerServerEventInternal | The backing function for TriggerServerEvent. |
| UnregisterRawNuiCallback | Will unregister and cleanup a registered NUI callback handler. |