Сервер
205 функций. Используйте поиск (Ctrl K) или список ниже.
| Функция | Описание |
|---|---|
| CanHeliTailBoomBreak | This is a getter for SET_HELI_TAIL_EXPLODE_THROW_DASHBOARD |
| CanPlayerStartCommerceSession | > This native is deprecated and may be removed in a future version. Use the Tebex API instead. |
| DeleteEntity | Deletes the specified entity. |
| DeleteTrain | Deletes the specified entity and any carriage its attached to, or that is attached to it. |
| DoesBoatSinkWhenWrecked | vehicle: The target vehicle. |
| DoesEntityExist | entity: |
| DoesPlayerExist | Returns whether or not the player exists |
| DoesPlayerOwnSku | > This native is deprecated and may be removed in a future version. Use DOES_PLAYER_OWN_SKU_EXT instead. |
| DoesPlayerOwnSkuExt | Requests whether or not the player owns the specified package. |
| DropPlayer | playerSrc: reason: |
| EnableEnhancedHostSupport | enabled: |
| FlagServerAsPrivate | private_: |
| GetAirDragMultiplierForPlayersVehicle | playerSrc: The player handle |
| GetAllObjects | Returns all object handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37] |
| GetAllPeds | Returns all peds handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37] |
| GetAllVehicles | Returns all vehicle handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37] |
| GetConsoleBuffer | Returns the current console output buffer. |
| GetCurrentPedWeapon | Returns the hash of weapon the Ped is currently using. |
| GetEntityAttachedTo | Gets the entity that this entity is attached to. |
| GetEntityCollisionDisabled | entity: The target entity. |
| GetEntityCoords | Gets the current coordinates for a specified entity. This native is used server side when using OneSync. |
| GetEntityHeading | entity: |
| GetEntityHealth | Only works for vehicle and peds |
| GetEntityMaxHealth | Currently it only works with peds. |
| GetEntityModel | entity: |
| GetEntityOrphanMode | entity: The entity to get the orphan mode of |
| GetEntityPopulationType | This native gets an entity's population type. |
| GetEntityRemoteSyncedScenesAllowed | entity: The entity to get the flag for. |
| GetEntityRotation | entity: |
| GetEntityRotationVelocity | entity: |
| GetEntityRoutingBucket | Gets the routing bucket for the specified entity. |
| GetEntityScript | entity: |
| GetEntitySpeed | Gets the current speed of the entity in meters per second. |
| GetEntityType | Gets the entity type (as an integer), which can be one of the following defined down below: |
| GetEntityVelocity | entity: |
| GetGameTimer | Gets the current game timer in milliseconds. |
| GetHashKey | This native converts the passed string to a hash. |
| GetHeliBodyHealth | Note This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF |
| GetHeliDisableExplodeFromBodyDamage | This is a getter for SET_DISABLE_HELI_EXPLODE_FROM_BODY_DAMAGE |
| GetHeliEngineHealth | Note This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF |
| GetHeliGasTankHealth | Note This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF |
| GetHeliMainRotorDamageScale | heli: The helicopter to check |
| GetHeliMainRotorHealth | vehicle: The target vehicle. |
| GetHeliPitchControl | heli: The helicopter to check. |
| GetHeliRearRotorDamageScale | heli: The helicopter to check |
| GetHeliRearRotorHealth | This native is a getter for SET_HELI_TAIL_ROTOR_HEALTH |
| GetHeliRollControl | heli: The helicopter to check. |
| GetHeliTailRotorDamageScale | heli: The helicopter to check |
| GetHeliTailRotorHealth | Note: This native is deprecated, please use GET_HELI_REAR_ROTOR_HEALTH instead. |
| GetHeliThrottleControl | heli: The helicopter to check. |
| GetHeliYawControl | heli: The helicopter to check. |
| GetHostId | — |
| GetIsHeliEngineRunning | heli: The helicopter to check |
| GetIsVehicleEngineRunning | vehicle: |
| GetIsVehiclePrimaryColourCustom | vehicle: |
| GetIsVehicleSecondaryColourCustom | vehicle: |
| GetLandingGearState | See the client-side GET_LANDING_GEAR_STATE native for a description of landing gear states. |
| GetLastPedInVehicleSeat | - vehicle: The target vehicle. - seatIndex: See eSeatPosition declared in IS_VEHICLE_SEAT_FREE. |
| GetMount | ped: the ped id |
| GetNetTypeFromEntity | Gets the specific entity type (as an integer), which can be one of the following defined down below: |
| GetNumPlayerIdentifiers | playerSrc: |
| GetNumPlayerIndices | — |
| GetNumPlayerTokens | playerSrc: |
| GetPasswordHash | password: |
| GetPedArmour | ped: |
| GetPedCauseOfDeath | ped: |
| GetPedDesiredHeading | ped: The target ped |
| GetPedInVehicleSeat | - vehicle: The target vehicle. - seatIndex: See eSeatPosition declared in IS_VEHICLE_SEAT_FREE. |
| GetPedMaxHealth | ped: |
| GetPedRelationshipGroupHash | Gets the current relationship group hash of a ped. |
| GetPedScriptTaskCommand | Gets the script task command currently assigned to the ped. |
| GetPedScriptTaskStage | Gets the stage of the peds scripted task. |
| GetPedSourceOfDamage | Get the last entity that damaged the ped. This native is used server side when using OneSync. |
| GetPedSourceOfDeath | Get the entity that killed the ped. This native is used server side when using OneSync. |
| GetPedSpecificTaskType | Gets the type of a ped's specific task given an index of the CPedTaskSpecificDataNode nodes. A ped will typically have a task at index 0, if |
| GetPedStealthMovement | ped: The target ped. |
| GetPlayerCameraRotation | Gets the current camera rotation for a specified player. This native is used server side when using OneSync. |
| GetPlayerEndpoint | playerSrc: |
| GetPlayerFakeWantedLevel | Gets the current fake wanted level for a specified player. This native is used server side when using OneSync. |
| GetPlayerFocusPos | Gets the focus position (i.e. the position of the active camera in the game world) of a player. |
| GetPlayerFromIndex | index: |
| GetPlayerGuid | playerSrc: |
| GetPlayerIdentifier | To get the number of identifiers, use GET_NUM_PLAYER_IDENTIFIERS |
| GetPlayerIdentifierByType | Get an identifier from a player by the type of the identifier. Known [Identifiers](https://docs.fivem.net/docs/scripting-reference/runtimes/ |
| GetPlayerInvincible | playerSrc: The player handle |
| GetPlayerLastMsg | playerSrc: |
| GetPlayerMaxArmour | playerSrc: The player handle |
| GetPlayerMaxHealth | playerSrc: The player handle |
| GetPlayerName | playerSrc: |
| GetPlayerPed | Used to get the player's Ped Entity ID when a valid playerSrc is passed. |
| GetPlayerPeerStatistics | cpp const int ENET_PACKET_LOSS_SCALE = 65536; |
| GetPlayerPing | See GET_PLAYER_PEER_STATISTICS if you want more detailed information, like packet loss, and packet/rtt variance |
| GetPlayerRoutingBucket | Gets the routing bucket for the specified player. |
| GetPlayerTeam | playerSrc: The player handle |
| GetPlayerTimeInPursuit | Gets the amount of time player has spent evading the cops. Counter starts and increments only when cops are chasing the player. If the playe |
| GetPlayerTimeOnline | Gets the current time online for a specified player. |
| GetPlayerToken | Gets a player's token. Tokens can be used to enhance banning logic, however are specific to a server. |
| GetPlayerWantedCentrePosition | Gets the current known coordinates for the specified player from cops perspective. This native is used server side when using OneSync. |
| GetPlayerWantedLevel | Returns given players wanted level server-side. |
| GetResourcePath | Returns the physical on-disk path of the specified resource. |
| GetSeatPedIsUsing | ped: the ped id |
| GetSelectedPedWeapon | An alias of GET_CURRENT_PED_WEAPON. |
| GetThrusterSideRcsThrottle | jetpack: The jetpack to check. |
| GetThrusterThrottle | jetpack: The jetpack to check. |
| GetTrainBackwardCarriage | train: The train handle |
| GetTrainCarriageEngine | train: The entity handle. |
| GetTrainCarriageIndex | train: The entity handle. |
| GetTrainForwardCarriage | train: The train handle |
| GetVehicleBodyHealth | vehicle: |
| GetVehicleColours | vehicle: colorPrimary: colorSecondary: |
| GetVehicleCustomPrimaryColour | vehicle: r: g: b: |
| GetVehicleCustomSecondaryColour | vehicle: r: g: b: |
| GetVehicleDashboardColour | vehicle: color: |
| GetVehicleDirtLevel | vehicle: |
| GetVehicleDoorLockStatus | lua enum_VehicleLockStatus = { None = 0, Locked = 2, LockedForPlayer = 3, StickPlayerInside = 4, -- Doesn't allow players to exit the vehicl |
| GetVehicleDoorStatus | Returns the open position of the specified door on the target vehicle. |
| GetVehicleDoorsLockedForPlayer | Currently it only works when set to "all players". |
| GetVehicleEngineHealth | vehicle: |
| GetVehicleExtraColours | vehicle: pearlescentColor: wheelColor: |
| GetVehicleFlightNozzlePosition | Gets the flight nozzel position for the specified vehicle. See the client-side _GET_VEHICLE_FLIGHT_NOZZLE_POSITION n |
| GetVehicleHeadlightsColour | vehicle: |
| GetVehicleHomingLockonState | Gets the lock on state for the specified vehicle. See the client-side GET_VEHICLE_HOMING_LOCKON_STATE native for a d |
| GetVehicleHornType | This is a getter for the client-side native START_VEHICLE_HORN, which allows you to return the horn type of the vehi |
| GetVehicleInteriorColour | vehicle: color: |
| GetVehicleLightsState | vehicle: lightsOn: highbeamsOn: |
| GetVehicleLivery | vehicle: |
| GetVehicleLockOnTarget | Gets the vehicle that is locked on to for the specified vehicle. |
| GetVehicleNeonColour | Getter to check the neon colour of a vehicle. This native is the server side getter of [GET_VEHICLE_NEON_LIGHTS_COLOUR](#_0x7619EEE8C886757F |
| GetVehicleNeonEnabled | Getter to check if one of the neon lights of a vehicle is enabled. This native is the server side getter of [IS_VEHICLE_NEON_LIGHT_ENABLED]( |
| GetVehicleNumberPlateText | vehicle: |
| GetVehicleNumberPlateTextIndex | vehicle: |
| GetVehiclePedIsIn | Gets the vehicle the specified Ped is/was in depending on bool value. This native is used server side when using OneSync. |
| GetVehiclePetrolTankHealth | vehicle: |
| GetVehicleRadioStationIndex | vehicle: |
| GetVehicleRoofLivery | vehicle: |
| GetVehicleTotalRepairs | vehicle: |
| GetVehicleTyreSmokeColor | vehicle: r: g: b: |
| GetVehicleWheelType | vehicle: |
| GetVehicleWindowTint | vehicle: |
| HasEntityBeenMarkedAsNoLongerNeeded | vehicle: |
| HasVehicleBeenDamagedByBullets | vehicle: The target vehicle. |
| HasVehicleBeenOwnedByPlayer | vehicle: |
| IsBoatAnchoredAndFrozen | vehicle: The target vehicle. |
| IsBoatWrecked | vehicle: The target vehicle. |
| IsEntityVisible | This native checks if the given entity is visible. |
| IsFlashLightOn | ped: The target ped. |
| IsHeliTailBoomBroken | heli: The helicopter to check |
| IsPedAPlayer | This native checks if the given ped is a player. |
| IsPedHandcuffed | ped: The target ped. |
| IsPedInAnyVehicle | ped: the ped id |
| IsPedInVehicle | ped: the ped id vehicle: the vehicle id |
| IsPedOnMount | ped: the ped id |
| IsPedRagdoll | ped: The target ped. |
| IsPedStrafing | ped: The target ped. |
| IsPedUsingActionMode | ped: The target ped. |
| IsPlayerAceAllowed | playerSrc: object: |
| IsPlayerCommerceInfoLoaded | > This native is deprecated and may be removed in a future version. Use IS_PLAYER_COMMERCE_INFO_LOADED_EXT instead. |
| IsPlayerCommerceInfoLoadedExt | Requests whether or not the commerce data for the specified player has loaded from Tebex. |
| IsPlayerEvadingWantedLevel | This will return true if the player is evading wanted level, meaning that the wanted level stars are blink. Otherwise will return false. |
| IsPlayerInFreeCamMode | playerSrc: The player to get the free camera mode status of |
| IsPlayerUsingSuperJump | playerSrc: The player handle |
| IsTrainCaboose | train: The train handle |
| IsVehicleExtraTurnedOn | vehicle: extraId: |
| IsVehicleSirenOn | vehicle: |
| IsVehicleTyreBurst | vehicle: wheelID: completely: |
| IsVehicleWindowIntact | See the client-side IS_VEHICLE_WINDOW_INTACT for a window indexes list. |
| LoadPlayerCommerceData | > This native is deprecated and may be removed in a future version. Use LOAD_PLAYER_COMMERCE_DATA_EXT instead. |
| LoadPlayerCommerceDataExt | Requests the commerce data from Tebex for the specified player, including the owned SKUs. |
| MumbleCreateChannel | Create a permanent voice channel. |
| MumbleIsPlayerMuted | Checks if the player is currently muted |
| MumbleSetPlayerMuted | Mutes or unmutes the specified player |
| NetworkGetEntityFromNetworkId | netId: |
| NetworkGetFirstEntityOwner | Returns the first owner ID of the specified entity. |
| NetworkGetNetworkIdFromEntity | entity: |
| NetworkGetVoiceProximityOverrideForPlayer | playerSrc: The player handle |
| PerformHttpRequestInternal | requestData: requestDataLength: |
| PerformHttpRequestInternalEx | requestData: |
| RegisterConsoleListener | Registers a listener for console output messages. |
| RegisterResourceAsset | Experimental: This native may be altered or removed in future versions of CitizenFX without warning. |
| RegisterResourceBuildTaskFactory | Registers a build task factory for resources. The function should return an object (msgpack map) with the following fields: { // returns whe |
| RequestPlayerCommerceSession | > This native is deprecated and may be removed in a future version. Use the Tebex API instead. |
| SaveResourceFile | Writes the specified data to a file in the specified resource. Using a length of -1 will automatically detect the length assuming the data i |
| ScheduleResourceTick | Schedules the specified resource to run a tick as soon as possible, bypassing the server's fixed tick rate. |
| SetConvar | varName: value: |
| SetConvarReplicated | Used to replicate a server variable onto clients. |
| SetConvarServerInfo | varName: value: |
| SetEntityDistanceCullingRadius | It overrides the default distance culling radius of an entity. Set to 0.0 to reset. If you want to interact with an entity outside of your p |
| SetEntityIgnoreRequestControlFilter | It allows to flag an entity to ignore the request control filter policy. |
| SetEntityOrphanMode | c enum EntityOrphanMode { // Default, this will delete the entity when it isn't relevant to any players // NOTE: this doesn't mean when they |
| SetEntityRemoteSyncedScenesAllowed | Enables or disables the owner check for the specified entity in network-synchronized scenes. When set to false, the entity cannot participat |
| SetEntityRoutingBucket | Sets the routing bucket for the specified entity. |
| SetGameType | gametypeName: |
| SetHttpHandler | Sets the handler for HTTP requests made to the executing resource. |
| SetMapName | mapName: |
| SetPlayerCullingRadius | Sets the culling radius for the specified player. Set to 0.0 to reset. |
| SetPlayerName | Changes the name of a player, both for the server (GET_PLAYER_NAME, player lists) and for other clients in-game. |
| SetPlayerRoutingBucket | Sets the routing bucket for the specified player. |
| SetRoutingBucketEntityLockdownMode | Sets the entity lockdown mode for a specific routing bucket. |
| SetRoutingBucketPopulationEnabled | Sets whether or not the specified routing bucket has automatically-created population enabled. |
| StartResource | resourceName: |
| StopResource | resourceName: |
| TempBanPlayer | playerSrc: reason: |
| TriggerClientEventInternal | The backing function for TriggerClientEvent. |
| TriggerLatentClientEventInternal | The backing function for TriggerLatentClientEvent. |
| VerifyPasswordHash | password: hash: |