Skip to content

Сервер ​

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

ФункцияОписание
CanHeliTailBoomBreakThis 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.
DeleteEntityDeletes the specified entity.
DeleteTrainDeletes the specified entity and any carriage its attached to, or that is attached to it.
DoesBoatSinkWhenWreckedvehicle: The target vehicle.
DoesEntityExistentity:
DoesPlayerExistReturns 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.
DoesPlayerOwnSkuExtRequests whether or not the player owns the specified package.
DropPlayerplayerSrc: reason:
EnableEnhancedHostSupportenabled:
FlagServerAsPrivateprivate_:
GetAirDragMultiplierForPlayersVehicleplayerSrc: The player handle
GetAllObjectsReturns all object handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37]
GetAllPedsReturns all peds handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37]
GetAllVehiclesReturns all vehicle handles known to the server. The data returned adheres to the following layout: [127, 42, 13, 37]
GetConsoleBufferReturns the current console output buffer.
GetCurrentPedWeaponReturns the hash of weapon the Ped is currently using.
GetEntityAttachedToGets the entity that this entity is attached to.
GetEntityCollisionDisabledentity: The target entity.
GetEntityCoordsGets the current coordinates for a specified entity. This native is used server side when using OneSync.
GetEntityHeadingentity:
GetEntityHealthOnly works for vehicle and peds
GetEntityMaxHealthCurrently it only works with peds.
GetEntityModelentity:
GetEntityOrphanModeentity: The entity to get the orphan mode of
GetEntityPopulationTypeThis native gets an entity's population type.
GetEntityRemoteSyncedScenesAllowedentity: The entity to get the flag for.
GetEntityRotationentity:
GetEntityRotationVelocityentity:
GetEntityRoutingBucketGets the routing bucket for the specified entity.
GetEntityScriptentity:
GetEntitySpeedGets the current speed of the entity in meters per second.
GetEntityTypeGets the entity type (as an integer), which can be one of the following defined down below:
GetEntityVelocityentity:
GetGameTimerGets the current game timer in milliseconds.
GetHashKeyThis native converts the passed string to a hash.
GetHeliBodyHealthNote This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF
GetHeliDisableExplodeFromBodyDamageThis is a getter for SET_DISABLE_HELI_EXPLODE_FROM_BODY_DAMAGE
GetHeliEngineHealthNote This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF
GetHeliGasTankHealthNote This native will always return 1000.0 unless SET_VEHICLE_BODY_HEALTH, [SET_VEHICLE_ENGINE_HEALTH](#_0x45F6D8EEF
GetHeliMainRotorDamageScaleheli: The helicopter to check
GetHeliMainRotorHealthvehicle: The target vehicle.
GetHeliPitchControlheli: The helicopter to check.
GetHeliRearRotorDamageScaleheli: The helicopter to check
GetHeliRearRotorHealthThis native is a getter for SET_HELI_TAIL_ROTOR_HEALTH
GetHeliRollControlheli: The helicopter to check.
GetHeliTailRotorDamageScaleheli: The helicopter to check
GetHeliTailRotorHealthNote: This native is deprecated, please use GET_HELI_REAR_ROTOR_HEALTH instead.
GetHeliThrottleControlheli: The helicopter to check.
GetHeliYawControlheli: The helicopter to check.
GetHostId—
GetIsHeliEngineRunningheli: The helicopter to check
GetIsVehicleEngineRunningvehicle:
GetIsVehiclePrimaryColourCustomvehicle:
GetIsVehicleSecondaryColourCustomvehicle:
GetLandingGearStateSee 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.
GetMountped: the ped id
GetNetTypeFromEntityGets the specific entity type (as an integer), which can be one of the following defined down below:
GetNumPlayerIdentifiersplayerSrc:
GetNumPlayerIndices—
GetNumPlayerTokensplayerSrc:
GetPasswordHashpassword:
GetPedArmourped:
GetPedCauseOfDeathped:
GetPedDesiredHeadingped: The target ped
GetPedInVehicleSeat- vehicle: The target vehicle. - seatIndex: See eSeatPosition declared in IS_VEHICLE_SEAT_FREE.
GetPedMaxHealthped:
GetPedRelationshipGroupHashGets the current relationship group hash of a ped.
GetPedScriptTaskCommandGets the script task command currently assigned to the ped.
GetPedScriptTaskStageGets the stage of the peds scripted task.
GetPedSourceOfDamageGet the last entity that damaged the ped. This native is used server side when using OneSync.
GetPedSourceOfDeathGet the entity that killed the ped. This native is used server side when using OneSync.
GetPedSpecificTaskTypeGets 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
GetPedStealthMovementped: The target ped.
GetPlayerCameraRotationGets the current camera rotation for a specified player. This native is used server side when using OneSync.
GetPlayerEndpointplayerSrc:
GetPlayerFakeWantedLevelGets the current fake wanted level for a specified player. This native is used server side when using OneSync.
GetPlayerFocusPosGets the focus position (i.e. the position of the active camera in the game world) of a player.
GetPlayerFromIndexindex:
GetPlayerGuidplayerSrc:
GetPlayerIdentifierTo get the number of identifiers, use GET_NUM_PLAYER_IDENTIFIERS
GetPlayerIdentifierByTypeGet an identifier from a player by the type of the identifier. Known [Identifiers](https://docs.fivem.net/docs/scripting-reference/runtimes/
GetPlayerInvincibleplayerSrc: The player handle
GetPlayerLastMsgplayerSrc:
GetPlayerMaxArmourplayerSrc: The player handle
GetPlayerMaxHealthplayerSrc: The player handle
GetPlayerNameplayerSrc:
GetPlayerPedUsed to get the player's Ped Entity ID when a valid playerSrc is passed.
GetPlayerPeerStatisticscpp const int ENET_PACKET_LOSS_SCALE = 65536;
GetPlayerPingSee GET_PLAYER_PEER_STATISTICS if you want more detailed information, like packet loss, and packet/rtt variance
GetPlayerRoutingBucketGets the routing bucket for the specified player.
GetPlayerTeamplayerSrc: The player handle
GetPlayerTimeInPursuitGets the amount of time player has spent evading the cops. Counter starts and increments only when cops are chasing the player. If the playe
GetPlayerTimeOnlineGets the current time online for a specified player.
GetPlayerTokenGets a player's token. Tokens can be used to enhance banning logic, however are specific to a server.
GetPlayerWantedCentrePositionGets the current known coordinates for the specified player from cops perspective. This native is used server side when using OneSync.
GetPlayerWantedLevelReturns given players wanted level server-side.
GetResourcePathReturns the physical on-disk path of the specified resource.
GetSeatPedIsUsingped: the ped id
GetSelectedPedWeaponAn alias of GET_CURRENT_PED_WEAPON.
GetThrusterSideRcsThrottlejetpack: The jetpack to check.
GetThrusterThrottlejetpack: The jetpack to check.
GetTrainBackwardCarriagetrain: The train handle
GetTrainCarriageEnginetrain: The entity handle.
GetTrainCarriageIndextrain: The entity handle.
GetTrainForwardCarriagetrain: The train handle
GetVehicleBodyHealthvehicle:
GetVehicleColoursvehicle: colorPrimary: colorSecondary:
GetVehicleCustomPrimaryColourvehicle: r: g: b:
GetVehicleCustomSecondaryColourvehicle: r: g: b:
GetVehicleDashboardColourvehicle: color:
GetVehicleDirtLevelvehicle:
GetVehicleDoorLockStatuslua enum_VehicleLockStatus = { None = 0, Locked = 2, LockedForPlayer = 3, StickPlayerInside = 4, -- Doesn't allow players to exit the vehicl
GetVehicleDoorStatusReturns the open position of the specified door on the target vehicle.
GetVehicleDoorsLockedForPlayerCurrently it only works when set to "all players".
GetVehicleEngineHealthvehicle:
GetVehicleExtraColoursvehicle: pearlescentColor: wheelColor:
GetVehicleFlightNozzlePositionGets the flight nozzel position for the specified vehicle. See the client-side _GET_VEHICLE_FLIGHT_NOZZLE_POSITION n
GetVehicleHeadlightsColourvehicle:
GetVehicleHomingLockonStateGets the lock on state for the specified vehicle. See the client-side GET_VEHICLE_HOMING_LOCKON_STATE native for a d
GetVehicleHornTypeThis is a getter for the client-side native START_VEHICLE_HORN, which allows you to return the horn type of the vehi
GetVehicleInteriorColourvehicle: color:
GetVehicleLightsStatevehicle: lightsOn: highbeamsOn:
GetVehicleLiveryvehicle:
GetVehicleLockOnTargetGets the vehicle that is locked on to for the specified vehicle.
GetVehicleNeonColourGetter to check the neon colour of a vehicle. This native is the server side getter of [GET_VEHICLE_NEON_LIGHTS_COLOUR](#_0x7619EEE8C886757F
GetVehicleNeonEnabledGetter 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](
GetVehicleNumberPlateTextvehicle:
GetVehicleNumberPlateTextIndexvehicle:
GetVehiclePedIsInGets the vehicle the specified Ped is/was in depending on bool value. This native is used server side when using OneSync.
GetVehiclePetrolTankHealthvehicle:
GetVehicleRadioStationIndexvehicle:
GetVehicleRoofLiveryvehicle:
GetVehicleTotalRepairsvehicle:
GetVehicleTyreSmokeColorvehicle: r: g: b:
GetVehicleWheelTypevehicle:
GetVehicleWindowTintvehicle:
HasEntityBeenMarkedAsNoLongerNeededvehicle:
HasVehicleBeenDamagedByBulletsvehicle: The target vehicle.
HasVehicleBeenOwnedByPlayervehicle:
IsBoatAnchoredAndFrozenvehicle: The target vehicle.
IsBoatWreckedvehicle: The target vehicle.
IsEntityVisibleThis native checks if the given entity is visible.
IsFlashLightOnped: The target ped.
IsHeliTailBoomBrokenheli: The helicopter to check
IsPedAPlayerThis native checks if the given ped is a player.
IsPedHandcuffedped: The target ped.
IsPedInAnyVehicleped: the ped id
IsPedInVehicleped: the ped id vehicle: the vehicle id
IsPedOnMountped: the ped id
IsPedRagdollped: The target ped.
IsPedStrafingped: The target ped.
IsPedUsingActionModeped: The target ped.
IsPlayerAceAllowedplayerSrc: object:
IsPlayerCommerceInfoLoaded> This native is deprecated and may be removed in a future version. Use IS_PLAYER_COMMERCE_INFO_LOADED_EXT instead.
IsPlayerCommerceInfoLoadedExtRequests whether or not the commerce data for the specified player has loaded from Tebex.
IsPlayerEvadingWantedLevelThis will return true if the player is evading wanted level, meaning that the wanted level stars are blink. Otherwise will return false.
IsPlayerInFreeCamModeplayerSrc: The player to get the free camera mode status of
IsPlayerUsingSuperJumpplayerSrc: The player handle
IsTrainCaboosetrain: The train handle
IsVehicleExtraTurnedOnvehicle: extraId:
IsVehicleSirenOnvehicle:
IsVehicleTyreBurstvehicle: wheelID: completely:
IsVehicleWindowIntactSee 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.
LoadPlayerCommerceDataExtRequests the commerce data from Tebex for the specified player, including the owned SKUs.
MumbleCreateChannelCreate a permanent voice channel.
MumbleIsPlayerMutedChecks if the player is currently muted
MumbleSetPlayerMutedMutes or unmutes the specified player
NetworkGetEntityFromNetworkIdnetId:
NetworkGetFirstEntityOwnerReturns the first owner ID of the specified entity.
NetworkGetNetworkIdFromEntityentity:
NetworkGetVoiceProximityOverrideForPlayerplayerSrc: The player handle
PerformHttpRequestInternalrequestData: requestDataLength:
PerformHttpRequestInternalExrequestData:
RegisterConsoleListenerRegisters a listener for console output messages.
RegisterResourceAssetExperimental: This native may be altered or removed in future versions of CitizenFX without warning.
RegisterResourceBuildTaskFactoryRegisters 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.
SaveResourceFileWrites the specified data to a file in the specified resource. Using a length of -1 will automatically detect the length assuming the data i
ScheduleResourceTickSchedules the specified resource to run a tick as soon as possible, bypassing the server's fixed tick rate.
SetConvarvarName: value:
SetConvarReplicatedUsed to replicate a server variable onto clients.
SetConvarServerInfovarName: value:
SetEntityDistanceCullingRadiusIt 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
SetEntityIgnoreRequestControlFilterIt allows to flag an entity to ignore the request control filter policy.
SetEntityOrphanModec enum EntityOrphanMode { // Default, this will delete the entity when it isn't relevant to any players // NOTE: this doesn't mean when they
SetEntityRemoteSyncedScenesAllowedEnables or disables the owner check for the specified entity in network-synchronized scenes. When set to false, the entity cannot participat
SetEntityRoutingBucketSets the routing bucket for the specified entity.
SetGameTypegametypeName:
SetHttpHandlerSets the handler for HTTP requests made to the executing resource.
SetMapNamemapName:
SetPlayerCullingRadiusSets the culling radius for the specified player. Set to 0.0 to reset.
SetPlayerNameChanges the name of a player, both for the server (GET_PLAYER_NAME, player lists) and for other clients in-game.
SetPlayerRoutingBucketSets the routing bucket for the specified player.
SetRoutingBucketEntityLockdownModeSets the entity lockdown mode for a specific routing bucket.
SetRoutingBucketPopulationEnabledSets whether or not the specified routing bucket has automatically-created population enabled.
StartResourceresourceName:
StopResourceresourceName:
TempBanPlayerplayerSrc: reason:
TriggerClientEventInternalThe backing function for TriggerClientEvent.
TriggerLatentClientEventInternalThe backing function for TriggerLatentClientEvent.
VerifyPasswordHashpassword: hash:

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