Skip to content

Клиент ​

559 функций. Используйте поиск (Ctrl K) или список ниже.

ФункцияОписание
ActivateTimecycleEditorActivates built-in timecycle editing tool.
AddAudioSubmixOutputAdds an output for the specified audio submix.
AddAuthorizedParachuteModelAdds the given model name hash to the list of valid models for the player ped's parachute.
AddAuthorizedParachutePackModelAdds the given model name hash to the list of valid models for the player ped's parachute pack.
AddHealthConfigAdds new health config.
AddMinimapOverlayLoads a minimap overlay from a GFx file in the current resource.
AddMinimapOverlayWithDepthLoads a minimap overlay from a GFx file in the current resource.
AddReplaceTextureExperimental natives, please do not use in a live environment.
AddTextEntryentryKey: entryText:
AddTextEntryByHashentryKey: entryText:
ApplyWeatherCyclesOverrides the weather cycles, using the values set through previous calls to 'SET_WEATHER_CYCLE_ENTRY'. Once applied, the li
BreakOffVehicleWheelBreak off vehicle wheel by index. The leaveDebrisTrail flag requires putOnFire to be true.
CallMinimapScaleformFunctionThis is similar to the PushScaleformMovieFunction natives, except it calls in the TIMELINE of a minimap overlay.
ClearDrawOriginResets the screen's draw-origin which was changed by the function SET_DRAW_ORIGIN back to x=0, y=0. See [SET_DRAW_ORIGIN](#_
ClearVehicleXenonLightsCustomColorRemoves vehicle xenon lights custom RGB color.
CloneTimecycleModifierlua local sourceName = "underwater" local cloneName = "my_awesome_timecycle"
CommitRuntimeTextureCommits the backing pixels to the specified runtime texture.
CreateAudioSubmixCreates an audio submix with the specified name, or gets the existing audio submix by that name.
CreateDryVolumeCreates a volume where water effects do not apply. Useful for preventing water collisions from flooding areas underneath them. This has no e
CreateDuiCreates a DUI browser. This can be used to draw on a runtime texture using CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.
CreateRuntimeTextureCreates a blank runtime texture.
CreateRuntimeTextureFromDuiHandleCreates a runtime texture from a DUI handle.
CreateRuntimeTextureFromImageCreates a runtime texture from the specified file in the current resource or a base64 data URL.
CreateRuntimeTxdCreates a runtime texture dictionary with the specified name. Example: lua local txd = CreateRuntimeTxd('meow')
CreateTimecycleModifierCreate a clean timecycle modifier. See SET_TIMECYCLE_MODIFIER_VAR to add variables.
DestroyDuiDestroys a DUI browser.
DisableIdleCameraDisables the game's afk camera that starts panning around after 30 seconds of inactivity.
DisableRawKeyThisFrameDisables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_ natives.
DisableVehiclePassengerIdleCameraDisables the game's afk camera that starts panning around after 30 seconds of inactivity(While riding in a car as a passenger)
DisableWorldhorizonRenderingDisables the game's world horizon lods rendering (see farlods.#dd). Using the island hopper natives might also affect this state.
DoesTextureExistIn compare to 0x31DC8D3F216D8509 return true if texture its created when 0x31DC8D3F216D8509 return true if you put there any id in valid ran
DoesTimecycleModifierHasVarlua local modifierName = "superDARK" local varName = "postfx_noise"
DoesVehicleUseFuelChecks whether the vehicle consumes fuel. The check is done based on petrol tank volume and vehicle type. Bicycles and vehicles with petrol
DoorSystemGetActiveReturns a list of door system entries: a door system hash (see ADD_DOOR_TO_SYSTEM) and its object handle.
DoorSystemGetSystemSizeThe number of doors registered in the system
DrawBoxx1: y1: z1: x2: y2: z2: red: green: blue: alpha:
DrawCoronaAllows drawing advanced light effects, known as coronas, which support flares, volumetric lighting, and customizable glow properties.
DrawGlowSphereDraw a glow sphere this frame. Up to 256 per single frame.
DrawLightDraw the prepared light.
DrawLinex1: y1: z1: x2: y2: z2: red: green: blue: alpha:
DrawLine2dLike DRAW_RECT, but it's a line.
DrawPolyx1: y1: z1: x2: y2: z2: x3: y3: z3: red: green: blue: alpha:
DrawRectRotatedDRAW_RECT, but with a rotation. Seems to be broken.
EndFindObjectfindHandle:
EndFindPedfindHandle:
EndFindPickupfindHandle:
EndFindVehiclefindHandle:
ExperimentalLoadCloneCreateThis native is not implemented.
ExperimentalLoadCloneSyncThis native is not implemented.
ExperimentalSaveCloneCreateThis native is not implemented.
ExperimentalSaveCloneSyncThis native is not implemented.
FindFirstObjectoutEntity:
FindFirstPedoutEntity:
FindFirstPickupoutEntity:
FindFirstVehicleoutEntity:
FindNextObjectfindHandle: outEntity:
FindNextPedfindHandle: outEntity:
FindNextPickupfindHandle: outEntity:
FindNextVehiclefindHandle: outEntity:
ForceSnowPassForces the game snow pass to render.
GetActivePlayersReturns all player indices for 'active' physical players known to the client. The data returned adheres to the following layout: [127, 42, 1
GetAllRopesReturns all rope handles. The data returned adheres to the following layout: [ 770, 1026, 1282, 1538, 1794, 2050, 2306, 2562, 2818, 3074, 33
GetAllTrackJunctionsReturns all track junctions on the client The data returned adheres to the following structure: [1, 2, 4, 6, 69, 420]
GetAllVehicleModelsReturns all registered vehicle model names, including non-dlc vehicles and custom vehicles in no particular order.
GetAmbientPedRangeMultiplierA getter for SET_AMBIENT_PED_RANGE_MULTIPLIER_THIS_FRAME.
GetAmbientVehicleRangeMultiplierA getter for SET_AMBIENT_VEHICLE_RANGE_MULTIPLIER_THIS_FRAME.
GetAspectRatioGets the current aspect ratio
GetCalmingQuadAtCoordsThis native returns the index of a calming quad if the given point is inside its bounds.
GetCalmingQuadBoundslua local success, minX, minY, maxX, maxY = GetCalmingQuadBounds(1)
GetCalmingQuadCountlua local calmingQuadCount = GetCalmingQuadCount()
GetCalmingQuadDampeninglua local success, dampening = GetCalmingQuadDampening(1)
GetCamMatrixReturns the world matrix of the specified camera. To turn this into a view matrix, calculate the inverse.
GetClientConfigBoolReturns whether a specific client configuration flag is currently enabled. You can find a list of configuration flags in [SET_CLIENT_CONFIG_
GetClosestTrackNodesGet all track nodes and their track ids within the radius of the specified coordinates.
GetCurrentGameNameThis native returns the currently used game's name.
GetCurrentScreenResolutionGets the current screen resolution.
GetCurrentServerEndpointReturns the peer address of the remote game server that the user is currently connected to.
GetDuiHandleReturns the NUI window handle for a specified DUI browser object.
GetEntityAddressExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
GetEntityArchetypeNameReturns entity's archetype name, if available.
GetFallDamageLandOnFootMultiplierA getter for SET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER.
GetFallDamageMultiplierA getter for SET_FALL_DAMAGE_MULTIPLIER.
GetFuelConsumptionRateMultiplierCurrent fuel consumption rate multiplier. 0 means that fuel is not consumed.
GetFuelConsumptionStateTrue if fuel consumption is turned on. False otherwise.
GetGlobalPassengerMassMultiplierA getter for SET_GLOBAL_PASSENGER_MASS_MULTIPLIER.
GetHudComponentAlignSee SET_SCRIPT_GFX_ALIGN for details about how gfx align works.
GetHudComponentNameid: The hud component id.
GetHudComponentSizeid: The hud component id.
GetInteriorEntitiesExtentslua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPortalCornerPositionlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPortalCountlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPortalEntityArchetypelua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
GetInteriorPortalEntityCountlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
GetInteriorPortalEntityFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
GetInteriorPortalEntityPositionlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
GetInteriorPortalEntityRotationlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
GetInteriorPortalFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPortalRoomFromlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPortalRoomTolua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorPositionlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorRoomCountlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetInteriorRoomExtentslua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
GetInteriorRoomFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
GetInteriorRoomIndexByHashlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
GetInteriorRoomNamelua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
GetInteriorRoomTimecyclelua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
GetInteriorRotationlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
GetKillFallHeightA getter for SET_KILL_FALL_HEIGHT.
GetMapZoomDataLevelReturns the zoom level data by index from mapzoomdata.meta file.
GetMinimapTypeGet the minimap type: 0 = Off, 1 = Regular, 2 = Expanded, 3 = Simple,
GetNetworkWalkMode—
GetNuiCursorPositionx: y:
GetNumberOfPedCollectionDrawableVariationsAn analogue of GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS that returns number of drawable variations inside a single coll
GetNumberOfPedCollectionPropDrawableVariationsAn analogue of GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS that returns number of prop variations inside a single col
GetNumberOfPedCollectionPropTextureVariationsAn alternative to GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS that uses local collection indexing instead of the globa
GetNumberOfPedCollectionTextureVariationsAn alternative to GET_NUMBER_OF_PED_TEXTURE_VARIATIONS that uses local collection indexing instead of the global one
GetParkedVehicleDensityMultiplierA getter for SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME.
GetPauseMapPointerWorldPositionReturns the world position the pointer is hovering on the pause map.
GetPedBoneMatrixReturns the bone matrix of the specified bone id. usefull for entity attachment
GetPedCollectionLocalIndexFromDrawableGets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_DRAWABLE) for the given globa
GetPedCollectionLocalIndexFromPropGets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_PROP) for the given global pro
GetPedCollectionNameReturns name of collection under given index for the given Ped.
GetPedCollectionNameFromDrawableGets collection name for the given global drawable ID. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE is used to
GetPedCollectionNameFromPropGets collection name for the given global prop index. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP is used to get
GetPedCollectionsCountReturns number of variation collections available for the given Ped.
GetPedDecorationsReturns a list of decorations applied to a ped.
GetPedDensityMultiplierA getter for SET_PED_DENSITY_MULTIPLIER_THIS_FRAME.
GetPedDrawableGlobalIndexFromCollectionReturns global drawable index based on the local one. Is it a reverse to GET_PED_COLLECTION_NAME_FROM_DRAWABLE and [GET_PED_
GetPedDrawableVariationCollectionLocalIndexAn analogue to GET_PED_DRAWABLE_VARIATION that returns collection local drawable index (inside [GET_PED_DRAWABLE_VAR
GetPedDrawableVariationCollectionNameAn analogue to GET_PED_DRAWABLE_VARIATION that returns collection name instead of the global drawable index.
GetPedEyeColorA getter for _SET_PED_EYE_COLOR. Returns -1 if fails to get.
GetPedFaceFeatureA getter for _SET_PED_FACE_FEATURE. Returns 0.0 if fails to get.
GetPedHairColorA getter for _SET_PED_HAIR_COLOR. Returns -1 if fails to get.
GetPedHairHighlightColorA getter for _SET_PED_HAIR_COLOR. Returns -1 if fails to get.
GetPedHeadOverlayDataA getter for SET_PED_HEAD_OVERLAY and _SET_PED_HEAD_OVERLAY_COLOR natives.
GetPedModelHealthConfigGets a ped model's health config.
GetPedModelPersonalityGets a ped model's personality type.
GetPedMovementClipsetped: The target ped.
GetPedPropCollectionLocalIndexAn analogue to GET_PED_PROP_INDEX that returns collection local prop index (inside [GET_PED_PROP_COLLECTION_NAME](#_
GetPedPropCollectionNameAn analogue to GET_PED_PROP_INDEX that returns collection name instead of the global drawable index.
GetPedPropGlobalIndexFromCollectionReturns global prop index based on the local one. Is it a reverse to GET_PED_COLLECTION_NAME_FROM_PROP and [GET_PED_COLLECTIO
GetPedScaleped: The target ped
GetPedSweatA getter for SET_PED_SWEAT.
GetPedWetnessped: The target ped
GetPedWetnessHeightped: The target ped
GetPlayerFromServerIdGets a local client's Player ID from its server ID counterpart, assuming the passed serverId exists on the client.
GetPlayerInvincible_2Unlike GET_PLAYER_INVINCIBLE this native gets both [SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED](#_0x6BC97F4F4BB3C04B
GetPlayerKillFallHeightA getter for SET_PLAYER_KILL_FALL_HEIGHT.
GetPlayerMaxStaminaplayerId: The player index.
GetPlayerMeleeWeaponDefenseModifierA getter for SET_PLAYER_MELEE_WEAPON_DEFENSE_MODIFIER.
GetPlayerServerIdplayer:
GetPlayerStaminaplayerId: The player index.
GetPlayerVehicleDamageModifierA getter for SET_PLAYER_VEHICLE_DAMAGE_MODIFIER.
GetPlayerVehicleDefenseModifierA getter for SET_PLAYER_VEHICLE_DEFENSE_MODIFIER.
GetRandomVehicleDensityMultiplierA getter for SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME. Same as vehicle density multiplier.
GetRopeFlagsc enum eRopeFlags
GetRopeLengthChangeRaterope: The rope to get the length change rate for.
GetRopeTimeMultiplierrope: The rope to get the time multiplier for.
GetRopeUpdateOrderrope: The rope to get the update order for.
GetRuntimeTextureHeightGets the height of the specified runtime texture.
GetRuntimeTexturePitchGets the row pitch of the specified runtime texture, for use when creating data for SET_RUNTIME_TEXTURE_ARGB_DATA.
GetRuntimeTextureWidthGets the width of the specified runtime texture.
GetScenarioPedDensityMultiplierA getter for SET_SCENARIO_PED_DENSITY_MULTIPLIER_THIS_FRAME.
GetShapeTestResultIncludingMaterialReturns the result of a shape test, also returning the material of any touched surface.
GetTimecycleModifierCountlua local count = GetTimecycleModifierCount() print("we have " .. count .. "timecycle modifiers loaded")
GetTimecycleModifierIndexByNamelua local modifierIndex = GetTimecycleModifierIndexByName("underwater") local currentIndex = GetTimecycleModifierIndex()
GetTimecycleModifierNameByIndexlua local modifierIndex = GetTimecycleModifierIndex()
GetTimecycleModifierStrengthA getter for SET_TIMECYCLE_MODIFIER_STRENGTH.
GetTimecycleModifierVarlua local modifierName = "superDARK" local varName = "postfx_noise"
GetTimecycleModifierVarCountlua local varCount = GetTimecycleModifierVarCount("underwater")
GetTimecycleModifierVarNameByIndexlua local varCount = GetTimecycleModifierVarCount("underwater")
GetTimecycleVarCountReturns the amount of variables available to be applied on timecycle modifiers.
GetTimecycleVarDefaultValueByIndexSee GET_TIMECYCLE_VAR_COUNT.
GetTimecycleVarNameByIndexSee GET_TIMECYCLE_VAR_COUNT.
GetTrackBrakingDistancetrack: The track id (between 0 - 27)
GetTrackMaxSpeedtrack: The track id (between 0 - 27)
GetTrackNodeCoordsGets the coordinates of a specific track node.
GetTrackNodeCountGets the specified tracks node count.
GetTrainCurrentTrackNodetrain: The target train.
GetTrainDoorCountGets the door count for the specified train.
GetTrainDoorOpenRatioGets the ratio that a door is open for on a train.
GetTrainSpeedGets the speed the train is currently going.
GetVehicleAlarmTimeLeftvehicle:
GetVehicleCheatPowerIncreaseA getter for SET_VEHICLE_CHEAT_POWER_INCREASE.
GetVehicleClutchvehicle:
GetVehicleCurrentGearvehicle:
GetVehicleCurrentRpmvehicle:
GetVehicleDashboardBoost—
GetVehicleDashboardCurrentGearRetrieves 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—
GetVehicleDashboardLightsGets the state of the player vehicle's dashboard lights as a bit set indicator_left = 1 indicator_right = 2 handbrakeLight = 4 engineLight =
GetVehicleDashboardOilPressure—
GetVehicleDashboardOilTemp—
GetVehicleDashboardRPMfloat 0 to ~1.1 representing the angle of the rpm gauge on the player's vehicle dashboard
GetVehicleDashboardSpeedvehicle:
GetVehicleDashboardTemp—
GetVehicleDashboardVacuum—
GetVehicleDensityMultiplierA getter for SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME.
GetVehicleDrawnWheelAngleMultGets a vehicle's multiplier used with a wheel's GET_VEHICLE_WHEEL_STEERING_ANGLE to determine the angle the wheel is rendered.
GetVehicleEngineTemperaturevehicle:
GetVehicleFuelLevelvehicle:
GetVehicleGearRatioGets vehicles gear ratio on choosen gear.
GetVehicleGravityAmountvehicle:
GetVehicleHandlingFloatReturns the effective handling data of a vehicle as a floating-point value. Example: local fSteeringLock = GetVehicleHandlingFloat(vehicle,
GetVehicleHandlingIntReturns the effective handling data of a vehicle as an integer value. Example: local modelFlags = GetVehicleHandlingInt(vehicle, 'CHandlingD
GetVehicleHandlingVectorReturns the effective handling data of a vehicle as a vector value. Example: local inertiaMultiplier = GetVehicleHandlingVector(vehicle, 'CH
GetVehicleHasFlagNote: Flags are not the same based on your gamebuild. Please see [here](https://docs.fivem.net/docs/game-references/vehicle-references/vehic
GetVehicleHighGearvehicle:
GetVehicleIndicatorLightsGets the vehicle indicator light state. 0 = off, 1 = left, 2 = right, 3 = both
GetVehicleLightMultipliervehicle:
GetVehicleNextGearvehicle:
GetVehicleNumberOfWheelsvehicle:
GetVehicleOilLevelvehicle:
GetVehicleSteeringScalevehicle:
GetVehicleThrottleOffsetvehicle:
GetVehicleTopSpeedModifierA getter for MODIFY_VEHICLE_TOP_SPEED. Returns -1.0 if a modifier is not set.
GetVehicleTurboPressurevehicle:
GetVehicleTypeRawReturns the model type of the vehicle as defined by:
GetVehicleWheelBrakePressureGets 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
GetVehicleWheelFlagsGets the flags of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
GetVehicleWheelHealthvehicle: wheelIndex:
GetVehicleWheelIsPoweredGets 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
GetVehicleWheelPowerGets power being sent to a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
GetVehicleWheelRimColliderSizevehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3.
GetVehicleWheelRotationSpeedGets the rotation speed of a wheel. This is used internally to calcuate GET_VEHICLE_WHEEL_SPEED. Max number of wheels can be retrieved with
GetVehicleWheelSizeReturns 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
GetVehicleWheelSpeedGets speed of a wheel at the tyre. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
GetVehicleWheelSteeringAngleGets steering angle of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
GetVehicleWheelSurfaceMaterialvehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3.
GetVehicleWheelSuspensionCompressionGets the current suspension compression of a wheel. Returns a positive value. 0 means the suspension is fully extended, the wheel is off the
GetVehicleWheelTireColliderSizevehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3.
GetVehicleWheelTireColliderWidthvehicle: The vehicle to obtain data for. wheelIndex: Index of wheel, 0-3.
GetVehicleWheelTractionVectorLengthGets the traction vector length of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
GetVehicleWheelWidthReturns vehicle's wheels' width (width is the same for all the wheels, cannot get/set specific wheel of vehicle). Only works on non-default
GetVehicleWheelXOffsetReturns the offset of the specified wheel relative to the wheel's axle center.
GetVehicleWheelYRotationvehicle: wheelIndex:
GetVehicleWheelieStateList of known states: 1: Not wheeling. 65: Vehicle is ready to do wheelie (burnouting). 129: Vehicle is doing wheelie.
GetVehicleXenonLightsCustomColorReturns vehicle xenon lights custom RGB color values. Do note this native doesn't return non-RGB colors that was set with [_SET_VEHICLE_XENO
GetVehicleXmasSnowFactorA getter for SET_VEHICLE_XMAS_SNOW_FACTOR. Returns the grip factor for the vehicles wheels during xmas weather. default valu
GetVisualSettingFloatA getter for SET_VISUAL_SETTING_FLOAT.
GetWaterQuadAlphalua local success, a0, a1, a2, a3 = GetWaterQuadAlpha(0)
GetWaterQuadAtCoordsThis native returns the index of a water quad if the given point is inside its bounds.
GetWaterQuadAtCoords_3dThis alternative implementation of GetWaterQuadAtCoords also checks the height of the water level.
GetWaterQuadBoundslua local success, minX, minY, maxX, maxY = GetWaterQuadBounds(1)
GetWaterQuadCountlua local waterQuadCount = GetWaterQuadCount() ## Возвращает Returns the amount of water quads loaded.
GetWaterQuadHasLimitedDepthlua local success, hasLimitedDepth = GetWaterQuadHasLimitedDepth(0)
GetWaterQuadIsInvisiblelua local success, isInvisible = GetWaterQuadIsInvisible(0)
GetWaterQuadLevellevel is defined as "z" in water.xml
GetWaterQuadNoStencillua local success, noStencil = GetWaterQuadNoStencil(0)
GetWaterQuadTypeValid type definitions:
GetWaveQuadAmplitudelua local success, amplitude = GetWaveQuadAmplitude(1)
GetWaveQuadAtCoordsThis native returns the index of a wave quad if the given point is inside its bounds.
GetWaveQuadBoundslua local success, minX, minY, maxX, maxY = GetWaveQuadBounds(1)
GetWaveQuadCountlua local waveQuadCount = GetWaveQuadCount() ## Возвращает Returns the amount of wave quads loaded.
GetWaveQuadDirectionlua local success, directionX, directionY = GetWaveQuadDirection(1)
GetWeaponAccuracySpreadA getter for the accuracy spread of a weapon.
GetWeaponAnimationOverrideA getter for SET_WEAPON_ANIMATION_OVERRIDE.
GetWeaponComponentAccuracyModifierA getter for CWeaponAccuracyModifier in a weapon component.
GetWeaponComponentCameraHashA getter for CameraHash in a weapon scope component.
GetWeaponComponentClipSizeA getter for ClipSize in a weapon component.
GetWeaponComponentDamageModifierA getter for CWeaponDamageModifier in a weapon component.
GetWeaponComponentRangeDamageModifierA getter for CWeaponFallOffModifier damage modifier value in a weapon component.
GetWeaponComponentRangeModifierA getter for CWeaponFallOffModifier range modifier value in a weapon component.
GetWeaponComponentReticuleHashA getter for ReticuleHash in a weapon scope component.
GetWeaponDamageModifierA getter for _SET_WEAPON_DAMAGE_MODIFIER.
GetWeaponRecoilShakeAmplitudeA getter for the recoil shake amplitude of a weapon.
GetWorldCoordFromScreenCoordConverts a screen coordinate into its relative world coordinate.
HasMinimapOverlayLoadedReturns whether or not the specific minimap overlay has loaded.
IsBigmapActiveReturns true if the minimap is currently expanded. False if it's the normal minimap state. Use IsBigmapFull to check if the
IsBigmapFullReturns true if the full map is currently revealed on the minimap. Use IsBigmapActive to check if the minimap is currently e
IsDisabledRawKeyDownGets if the specified rawKeyIndex is pressed down, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
IsDisabledRawKeyPressedGets if the specified rawKeyIndex is pressed, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
IsDisabledRawKeyReleasedGets if the specified rawKeyIndex was released, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
IsDisabledRawKeyUpGets if the specified rawKeyIndex is up, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
IsDuiAvailableReturns whether or not a browser is created for a specified DUI browser object.
IsGameEnhancedVersionReturns whether this script is running in GTAV Enhanced or not.
IsNuiFocusKeepingInputChecks if keyboard input is enabled during NUI focus using SET_NUI_FOCUS_KEEP_INPUT.
IsNuiFocusedReturns the current NUI focus state previously set with SET_NUI_FOCUS.
IsPedCollectionComponentVariationGen9ExclusiveAn alternative to IS_PED_COMPONENT_VARIATION_GEN9_EXCLUSIVE that uses local collection indexing instead of the global one.
IsPedCollectionComponentVariationValidAn alternative to IS_PED_COMPONENT_VARIATION_VALID that uses local collection indexing instead of the global one.
IsPedComponentVariationGen9Exclusivelua local ped = PlayerPedId()
IsRawKeyDownGets if the specified rawKeyIndex is pressed down on the keyboard.
IsRawKeyPressedGets if the specified rawKeyIndex is pressed on the keyboard.
IsRawKeyReleasedGets if the specified rawKeyIndex was just released on the keyboard.
IsRawKeyUpGets if the specified rawKeyIndex is up on the keyboard.
IsStreamingFileReadyExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
IsTrackEnabledGetter for SET_TRACK_ENABLED
IsTrackSwitchedOffGetter for SWITCH_TRAIN_TRACK. Determines if ambient trains are able to spawn on this track.
IsVehicleAlarmSetvehicle:
IsVehicleInteriorLightOnvehicle:
IsVehicleNeedsToBeHotwiredvehicle:
IsVehiclePreviouslyOwnedByPlayervehicle:
IsVehicleWantedvehicle:
IsVehicleWheelBrokenOffGetter for BREAK_OFF_VEHICLE_WHEEL.
LoadWaterFromPathDefine the xml in a resources fxmanifest, under the file(s) section.
MumbleAddVoiceChannelListenStarts listening to the specified channel, when available.
MumbleAddVoiceTargetChannelAdds the specified channel to the target list for the specified Mumble voice target ID.
MumbleAddVoiceTargetPlayerAdds the specified player to the target list for the specified Mumble voice target ID.
MumbleAddVoiceTargetPlayerByServerIdAdds the specified player to the target list for the specified Mumble voice target ID.
MumbleClearVoiceChannel—
MumbleClearVoiceTargetClears the target list for the specified Mumble voice target ID.
MumbleClearVoiceTargetChannelsClears channels from the target list for the specified Mumble voice target ID.
MumbleClearVoiceTargetPlayersClears players from the target list for the specified Mumble voice target ID.
MumbleDoesChannelExistCheck whether specified channel exists on the Mumble server.
MumbleGetTalkerProximityTalker proximity value.
MumbleGetVoiceChannelFromServerIdReturns the mumble voice channel from a player's server id.
MumbleIsActiveTrue if the player has enabled voice chat.
MumbleIsConnectedThis native will return true if the user succesfully connected to the voice server. If the user disabled the voice-chat setting it will retu
MumbleIsPlayerTalkingplayer: The target player.
MumbleRemoveVoiceChannelListenStops listening to the specified channel.
MumbleRemoveVoiceTargetChannelRemoves the specified voice channel from the user's voice targets.
MumbleRemoveVoiceTargetPlayerRemoves the specified player from the user's voice targets.
MumbleRemoveVoiceTargetPlayerByServerIdRemoves the specified player from the user's voice targets.
MumbleSetActivestate: Voice chat state.
MumbleSetAudioInputDistanceSets the current input distance. The player will be able to talk to other players within this distance.
MumbleSetAudioInputIntentUse this native to disable noise suppression and high pass filters.
MumbleSetAudioOutputDistanceSets the current output distance. The player will be able to hear other players talking within this distance.
MumbleSetServerAddressChanges the Mumble server address to connect to, and reconnects to the new address.
MumbleSetSubmixForServerIdSets the audio submix ID for a specified player using Mumble 'Native Audio' functionality.
MumbleSetTalkerProximityvalue: Proximity value.
MumbleSetVoiceChannelchannel: A game voice channel ID.
MumbleSetVoiceTargetSets the current Mumble voice target ID to broadcast voice to.
MumbleSetVolumeOverrideOverrides the output volume for a particular player on Mumble. This will also bypass 3D audio and distance calculations. -1.0 to reset the o
MumbleSetVolumeOverrideByServerIdOverrides the output volume for a particular player with the specified server id and player name on Mumble. This will also bypass 3D audio a
NetworkDoesEntityExistWithNetworkIdnetId: The network id to check
OnesyncEnableRemoteAttachmentSanitizationToggles a check that prevents attaching (networked) entities to remotely owned peds. This is disabled by default.
OverridePedsCanStandOnTopFlagSets whether peds can stand on top of all vehicles without falling off.
OverridePedsUseDefaultDriveByClipsetAllows the bypassing of default game behavior that prevents the use of SET_PED_DRIVE_BY_CLIPSET_OVERRIDE in certain
OverridePopGroupsReplaces the popgroups (CPopGroupList) meta file with the file in the specified path.
OverrideReactionToVehicleSirenSetting the state to true and a value between 0 and 2 will cause pedestrian vehicles to react accordingly to sirens.
OverrideVehiclePedsCanStandOnTopFlagOverrides whether or not peds can stand on top of the specified vehicle.
PrepareLightCreate a new light with specified type, flags, position, color, and intensity.
RegisterArchetypesExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
RegisterFontFileRegisters a specified .gfx file as GFx font library. The .gfx file has to be registered with the streamer already.
RegisterFontIdRegisters a specified font name for use with text draw commands.
RegisterKeyMappingRegisters a key mapping for the current resource.
RegisterNuiCallbackcallbackType: callback:
RegisterNuiCallbackTypecallbackType:
RegisterRawKeymapRegisters a keymap that will be triggered whenever rawKeyIndex is pressed or released.
RegisterRawNuiCallbackcallbackType: callback:
RegisterRopeDataRegisters a custom rope data with the game. For guidance on what these values should be use common:/data/ropedata.xml as a reference. Return
RegisterStreamingFileFromCacheExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
RegisterStreamingFileFromKvsExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
RegisterStreamingFileFromUrlExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
RegisterTrackJunctionRegisters a track junction that when enabled will cause a train on the defined trackIndex, node and direction to change its current track in
RemapRawKeymapRemaps the keymap bound to keymapName to newRawKeyIndex
RemoveDryVolumeRemoves a dry volume from the game session. See CREATE_DRY_VOLUME for more info
RemoveHealthConfigRemoves health config.
RemoveReplaceTextureExperimental natives, please do not use in a live environment.
RemoveTextureRemoves the specified texture and remove it from the ped. Unlike 0x6BEFAA907B076859 which only marks the texture as "can be reused" (and kee
RemoveTimecycleModifierlua local modifierName = "my_awesome_timecycle" RemoveTimecycleModifier(modifierName)
RemoveTimecycleModifierVarlua local modifierName = "superDARK" local varName = "postfx_noise"
RemoveTrackJunctionRemoves the specified track junction.
RequestResourceFileSetRequests a resource file set with the specified name to be downloaded and mounted on top of the current resource.
ResetFlyThroughWindscreenParamsResets parameters which is used by the game for checking is ped needs to fly through windscreen after a crash to default values.
ResetMapZoomDataLevelResets values from the zoom level data by index to defaults from mapzoomdata.meta.
ResetPedModelPersonalityRestores an overridden ped model personality type to the default value.
ResetVehiclePedsCanStandOnTopFlagResets whether or not peds can stand on top of the specified vehicle.
ResetWaterResets the water to the games default water.xml.
SendDuiMessageSends a message to the specific DUI root page. This is similar to SEND_NUI_MESSAGE.
SendDuiMouseDownInjects a 'mouse down' event for a DUI object. Coordinates are expected to be set using SEND_DUI_MOUSE_MOVE.
SendDuiMouseMoveInjects a 'mouse move' event for a DUI object. Coordinates are in browser space.
SendDuiMouseUpInjects a 'mouse up' event for a DUI object. Coordinates are expected to be set using SEND_DUI_MOUSE_MOVE.
SendDuiMouseWheelInjects a 'mouse wheel' event for a DUI object.
SendLoadingScreenMessageSends a message to the loadingScreen NUI frame, which contains the HTML page referenced in loadscreen resources.
SendNuiMessagejsonString:
SetAimCooldownAdds a cooldown between instances of moving and then aiming. Can be optionally used to hinder 'speedboosting' To turn off, set value to 0
SetAudioSubmixEffectParamFloatSets a floating-point parameter for a submix effect.
SetAudioSubmixEffectParamIntSets an integer parameter for a submix effect.
SetAudioSubmixEffectRadioFxAssigns a RadioFX effect to a submix effect slot.
SetAudioSubmixOutputVolumesSets 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
SetBackfacecullingtoggle:
SetCalmingQuadBoundslua local success = SetCalmingQuadBounds(1, -500, -500, 500, 500)
SetCalmingQuadDampeninglua local success = SetCalmingQuadDampening(0, 1.0)
SetClientConfigBoolc enum ClientConfigFlag
SetCursorLocationx: X position. y: Y position.
SetDefaultVehicleNumberPlateTextPatternSets the default number plate text pattern for vehicles seen on the local client with the specified plate index as their default index (pl
SetDiscordAppIdThis native sets the app id for the discord rich presence implementation.
SetDiscordRichPresenceActionSets a clickable button to be displayed in a player's Discord rich presence.
SetDiscordRichPresenceAssetThis native sets the image asset for the discord rich presence implementation.
SetDiscordRichPresenceAssetSmallThis native sets the small image asset for the discord rich presence implementation.
SetDiscordRichPresenceAssetSmallTextThis native sets the hover text of the small image asset for the discord rich presence implementation.
SetDiscordRichPresenceAssetTextThis native sets the hover text of the image asset for the discord rich presence implementation.
SetDrawOriginSets the on-screen drawing origin for draw-functions in world coordinates.
SetDuiUrlNavigates the specified DUI browser to a different URL.
SetEmitterProbeLengthAllows StaticEmitter's without a linked entity to make use of environment features like occlusion and reverb even if they are located higher
SetFallDamageLandOnFootMultiplierA setter for GET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER.
SetFallDamageMultiplierA setter for GET_FALL_DAMAGE_MULTIPLIER.
SetFlashLightKeepOnWhileMovingAllows Weapon-Flashlight beams to stay visible while moving. Normally it only stays on while aiming.
SetFlyThroughWindscreenParamsSets some in-game parameters which is used for checks is ped needs to fly through windscreen after a crash.
SetFogVolumeRenderDisabledThis completely disables rendering of fog volumes (vfxfogvolumeinfo.ymt).
SetFuelConsumptionRateMultiplierSets 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
SetFuelConsumptionStateTurns on and off fuel consumption in all vehicles operated by a player. NPC operated vehicles will not consume fuel to avoid traffic disrupt
SetGlobalPassengerMassMultipliermassMul: Weight of each passenger (not counting the driver) as a percentage of vehicle mass. Is applied to all vehicles. Default value is 0.
SetHandlingFieldSets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp
SetHandlingFloatSets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp
SetHandlingIntSets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta.
SetHandlingVectorSets a global handling override for a specific vehicle class. The name is supposed to match the handlingName field from handling.meta. Examp
SetHealthConfigDefaultArmorSets default armor value for specific health config.
SetHealthConfigDefaultEnduranceSets default endurance value for specific health config.
SetHealthConfigDefaultHealthSets default health value for specific health config.
SetHealthConfigDogTakedownThresholdSets default dog takedown threshold value for specific health config.
SetHealthConfigDyingThresholdSets default dying health threshold value for specific health config.
SetHealthConfigFatiguedThresholdSets default fatigued health threshold value for specific health config.
SetHealthConfigHurtThresholdSets default hurt health threshold value for specific health config.
SetHealthConfigInjuredThresholdSets default injured health threshold value for specific health config.
SetHealthConfigInvincibleSets default invincible value for specific health config.
SetHealthConfigMeleeFatalAttackSets default melee cardinal fatal attack value for specific health config.
SetHealthConfigWritheFromBulletThresholdSets default writhe from bullet threshold value for specific health config.
SetHudComponentAlignSee SET_SCRIPT_GFX_ALIGN for details about how gfx align works.
SetHudComponentSizeid: The hud component id. x: New size X. y: New size Y.
SetIgnoreVehicleOwnershipForStowingSets whether or not ownership checks should be performed while trying to stow a carriable on a hunting wagon.
SetInteriorPortalCornerPositionlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
SetInteriorPortalEntityFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local portalIndex = 0
SetInteriorPortalFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
SetInteriorPortalRoomFromlua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
SetInteriorPortalRoomTolua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
SetInteriorProbeLengthOverwrite the games default CPortalTracker interior detection range. This fixes potentially unwanted behaviour in the base game and allows y
SetInteriorRoomExtentslua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed)
SetInteriorRoomFlaglua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
SetInteriorRoomTimecyclelua local playerPed = PlayerPedId() local interiorId = GetInteriorFromEntity(playerPed) local roomHash = GetRoomKeyFromEntity(playerPed) loc
SetKeyMappingHideResourcesToggles the visibility of resource names in the FiveM key mapping page.
SetKillFallHeightA setter for GET_KILL_FALL_HEIGHT.
SetLightAlphaSet the alpha transparency of the light.
SetLightAoSet ambient occlusion (AO) parameters for a specified light.
SetLightCapsuleSizeSet the capsule size of a specified light.
SetLightClipRectSet the clip rectangle for a created light.
SetLightColorSet the color of a specified light.
SetLightConeSet the inner and outer cone angles of a specified light.
SetLightCoordsSet the world coordinates of a specified light.
SetLightDirectionSet the forward and tangent direction vectors for an existing light, allowing control over its orientation (useful for spotlights and direct
SetLightExtraflagsSet additional configuration flags for an existing light
SetLightFadeDistanceSet the fade distance.
SetLightFalloffAdjust the falloff parameter for an existing light, affecting how light intensity decreases over distance.
SetLightFlagsSet or update specific flags for a created light to control its behavior or properties.
SetLightHeadlightSet the headlight properties of a created light, adjusting its intensity and range.
SetLightIntensitySet the intensity of an existing light.
SetLightInteriorSet the interior and room where the light should be active.
SetLightPlaneSet the plane parameters for a light.
SetLightRadiusSet the radius of a created light.
SetLightShadowDetailsSet the shadow details for a created light.
SetLightShadowFadeDistanceSet the fade distance for the shadows of a created light.
SetLightSpecularFadeDistanceSet the specular fade distance for a created light.
SetLightTextureAssign a texture to an existing light source, allowing custom light shapes or patterns using textures from streaming assets.
SetLightTypeChange the light type of a already created light. Certain light type needs more configurations to work properly (Like direction, flags or si
SetLightVolumeDetailsSet volumetric light properties for an existing light, enabling custom volumetric effects such as fog-like glow.
SetLightVolumetricFadeDistanceSet the fade distance for volumetric lightingn.
SetManualShutdownLoadingScreenNuiNote: This native is deprecated and doesn't work anymore. Use [loadscreen_manual_shutdown](https://docs.fivem.net/docs/scripting-reference/r
SetMapZoomDataLevelSets values to the zoom level data by index.
SetMillisecondsPerGameMinuteOverrides how many real ms are equal to one game minute. A setter for GetMillisecondsPerGameMinute.
SetMinimapClipTypeSets the type for the minimap blip clipping object to be either rectangular or rounded.
SetMinimapComponentPositionOverrides the minimap component data (from common:/data/ui/frontend.xml) for a specified component.
SetMinimapOverlayDisplaySets the display info for a minimap overlay.
SetMinimapTypePossible Types: 0 = Off, 1 = Regular, 2 = Expanded, 3 = Simple,
SetModelHeadlightConfigurationThis native is deprecated and does nothing!
SetMpGamerTagsUseVehicleBehaviorSets whether all tags should group (normal game behavior) or should remain independent and above each ped's respective head when in a vehicl
SetMpGamerTagsVisibleDistanceSets 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—
SetNuiFocushasFocus: hasCursor:
SetNuiFocusKeepInputkeepInput:
SetNuiZindexSet the z-index of the NUI resource.
SetPedCollectionComponentVariationAn alternative to SET_PED_COMPONENT_VARIATION that uses local collection indexing instead of the global one.
SetPedCollectionPreloadPropDataAn alternative to SET_PED_PRELOAD_PROP_DATA that uses local collection indexing instead of the global one.
SetPedCollectionPreloadVariationDataAn alternative to SET_PED_PRELOAD_VARIATION_DATA that uses local collection indexing instead of the global one.
SetPedCollectionPropIndexAn alternative to SET_PED_PROP_INDEX that uses local collection indexing instead of the global one.
SetPedMeleeCombatLimitsOverride the limits on the number and types of melee combatants. The game is limited to at most ten combatants among the three types: primar
SetPedModelHealthConfigSets a ped model's health config. Takes effect only after setting player model with SET_PLAYER_MODEL.
SetPedModelPersonalityOverrides a ped model personality type.
SetPedTurningThresholdsPurpose: The game's default values for these make shooting while traveling Left quite a bit slower than shooting while traveling right (This
SetPlayerKillFallHeightA setter for GET_PLAYER_KILL_FALL_HEIGHT.
SetPlayerMaxStaminaplayerId: The player index maxStamina: The value you want to set
SetPlayerStaminaplayerId: The player index stamina: The value you want to set
SetPlayerTalkingOverridethe status of default voip system. It affects on NETWORK_IS_PLAYER_TALKING and mp_facial animation. This function doesn't need to be called
SetReactionToVehicleSirenDisabledThis completely disables pedestrian vehicles from reacting to sirens. They will not try to do any maneuver to evade.
SetRichPresenceSets the player's rich presence detail state for social platform providers to a specified string.
SetRopeLengthChangeRateSet's the ropes length change rate, which is the speed that rope should wind if started.
SetRopesCreateNetworkWorldStateToggles whether the usage of ADD_ROPE should create an underlying CNetworkRopeWorldStateData. By default this is set
SetRuntimeTextureArgbDatatex: buffer: length:
SetRuntimeTextureImageReplaces the pixel data in a runtime texture with the image data from a file in the current resource, or a data URL.
SetRuntimeTexturePixelSets a pixel in the specified runtime texture. This will have to be committed using COMMIT_RUNTIME_TEXTURE to have any effect.
SetSnakeoilForEntryname: path: data:
SetTextChatEnabledenabled:
SetTextFontForCurrentCommandSets the text font for the current text drawing command.
SetTextJustificationjustifyType:
SetTextWrapstart: end:
SetTimecycleModifierVarlua local modifierName = "superDARK" local varName = "postfx_noise"
SetTrackBrakingDistanceSets the braking distance of the track. Used by trains to determine the point to slow down when entering a station.
SetTrackEnabledToggles 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
SetTrackJunctionActiveSets the state of a track junction.
SetTrackMaxSpeedSets the max speed for the train tracks. Used by ambient trains and for station calculations
SetTrainDoorOpenRatioSets the ratio that a door is open for on a train.
SetTrainStatetrain: The train handle state: The trains new state
SetTrainStopAtStationsToggles a train's ability to stop at stations
SetTrainsForceDoorsOpenEnables or disables whether train doors should be forced open whilst a player is inside the train. This is enabled by default in multiplayer
SetVehicleAlarmTimeLeftvehicle: time:
SetVehicleAutoRepairDisabledDisables the vehicle from being repaired when a vehicle extra is enabled.
SetVehicleClutchvehicle: clutch:
SetVehicleCurrentGearvehicle: The vehicle handle. gear: The gear you want the vehicle to use.
SetVehicleCurrentRpmvehicle: rpm:
SetVehicleEngineTemperaturevehicle: temperature:
SetVehicleFlagThis native is a setter for GET_VEHICLE_HAS_FLAG.
SetVehicleFuelLevelvehicle: level:
SetVehicleGearRatioSets 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
SetVehicleGravityAmountvehicle: gravity:
SetVehicleHandlingFieldSets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_FIELD, this might requir
SetVehicleHandlingFloatSets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_FLOAT, this might requir
SetVehicleHandlingIntSets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_INT, this might require
SetVehicleHandlingVectorSets a handling override for a specific vehicle. Certain handling flags can only be set globally using SET_HANDLING_VECTOR, this might requi
SetVehicleHighGearvehicle: gear:
SetVehicleNextGearvehicle: The vehicle handle. nextGear: The vehicles next gear.
SetVehicleNitroPtfxRangeSets the maximum distance in which _SET_VEHICLE_NITRO_ENABLED PTFX are rendered. Distance is measured from the camer
SetVehicleOilLevelvehicle: level:
SetVehiclePitchBiasSet the vehicle's pitch bias. Only works on planes.
SetVehicleRollBiasSet the vehicle's roll bias. Only works on planes.
SetVehicleSteeringAnglevehicle: angle:
SetVehicleSteeringScalevehicle: scale:
SetVehicleSuspensionHeightSets the height of the vehicle's suspension. This changes the same value set by Suspension in the mod shop. Negatives values raise the car.
SetVehicleTurboPressurevehicle: pressure:
SetVehicleWheelBrakePressureSets 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
SetVehicleWheelFlagsSets the flags of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
SetVehicleWheelHealthvehicle: wheelIndex: health:
SetVehicleWheelIsPoweredSets 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
SetVehicleWheelPowerSets power being sent to a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
SetVehicleWheelRimColliderSizeNot sure what this changes, probably determines physical rim size in case the tire is blown.
SetVehicleWheelRotationSpeedSets the rotation speed of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
SetVehicleWheelSizeSets 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
SetVehicleWheelTireColliderSizeUse along with SetVehicleWheelSize to resize the wheels (this native sets the collider size affecting physics while SetVehicleWheelSize will
SetVehicleWheelTireColliderWidthUse along with SetVehicleWheelWidth to resize the wheels (this native sets the collider width affecting physics while SetVehicleWheelWidth w
SetVehicleWheelTractionVectorLengthSets the traction vector length of a wheel. Max number of wheels can be retrieved with the native GET_VEHICLE_NUMBER_OF_WHEELS.
SetVehicleWheelWidthSets 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
SetVehicleWheelXOffsetAdjusts the offset of the specified wheel relative to the wheel's axle center. Needs to be called every frame in order to function properly,
SetVehicleWheelYRotationvehicle: wheelIndex: value:
SetVehicleWheelieStateExample script: https://pastebin.com/J6XGbkCW
SetVehicleXenonLightsCustomColorSets custom vehicle xenon lights color, allowing to use RGB palette. The game will ignore lights color set by [_SET_VEHICLE_XENON_LIGHTS_COL
SetVehicleXmasSnowFactorgripFactor: amount of grip strength vehicle wheels have when xmas weather is active, 0.0 being normal weather grip. 0.2 is the default.
SetVisualSettingFloatOverrides a floating point value from visualsettings.dat temporarily.
SetWaterAreaClipRectSets world clip boundaries for water quads file (water.xml, water_heistisland.xml) Used internally by LOAD_GLOBAL_WATER_FILE
SetWaterQuadAlphalua local success = SetWaterQuadAlpha(0, 5, 5, 5, 5)
SetWaterQuadBoundsThis native allows you to update the bounds of a specified water quad index.
SetWaterQuadHasLimitedDepthlua local success = SetWaterQuadHasLimitedDepth(0, true)
SetWaterQuadIsInvisiblelua local success = SetWaterQuadIsInvisible(0, true)
SetWaterQuadLevellua local success = SetWaterQuadLevel(0, 55.0)
SetWaterQuadNoStencillua local success = SetWaterQuadNoStencil(0, true)
SetWaterQuadTypeThis native allows you to update the water quad type.
SetWaveQuadAmplitudelua local success = SetWaveQuadAmplitude(0, 1.0)
SetWaveQuadBoundsThis native allows you to update the bounds of a specified water quad index.
SetWaveQuadDirectiondirectionX/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
SetWeaponAccuracySpreadA setter for the accuracy spread of a weapon.
SetWeaponRecoilShakeAmplitudeA setter for the recoil shake amplitude of a weapon.
SetWeaponsNoAimBlockingDisables weapons aim blocking due to environment for local player. For non-player peds [SET_PED_ENABLE_WEAPON_BLOCKING](#_0x97A790315D3831FD
SetWeaponsNoAutoReloadDisables the game's built-in auto-reloading.
SetWeaponsNoAutoSwapDisables autoswapping to another weapon when the current weapon runs out of ammo.
SetWeatherCycleEntrySets the name and duration of a weather cycle. Changes are not applied until 'APPLY_WEATHER_CYCLES' is called.
SetWeatherOwnedByNetworkSets whether or not the weather should be owned by the network subsystem.
SetWetClothPinRadiusScaleModifies the radius scale used in the simulation of wet cloth physics. This affects how cloth behaves when wet, changing how it sticks or re
ShutdownLoadingScreenNuiShuts down the loadingScreen NUI frame, similarly to SHUTDOWN_LOADING_SCREEN.
TriggerLatentServerEventInternalThe backing function for TriggerLatentServerEvent.
TriggerServerEventInternalThe backing function for TriggerServerEvent.
UnregisterRawNuiCallbackWill unregister and cleanup a registered NUI callback handler.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.