Server-functions

From FiveM Wikipedia

Функции сервера

Ниже приведен список некоторых функций, которые можно использовать специально в серверных сценариях.

Функции, специфичные для среды выполнения

Некоторые функции являются эксклюзивными для используемой среды выполнения сценариев и не документированы в списке собственных ссылок FiveM. Обратитесь к их документам для получения более подробной информации.

Нативные функции

Это нативные функции, предусмотренные рамками Citizen. Нажатие на каждую ссылку приведет к нативному каналу FiveM reference, где можно увидеть синтаксис по языкам, описание и примеры использования native.

Эти собственные компоненты можно использовать во всех средах выполнения.

CFX

  • AddBlipforArea
  • AddBlipforCoord
  • AddBlipforEntity
  • AddBlipforRadius
  • AddPedDecorationFromHashes
  • AddStateBagChangeHandler
  • ApplyForcetoEntity
  • CanPlayerStartCommerceSession
  • CancelEvent
  • ClearPedProp
  • ClearPedSecondaryTask
  • ClearPedTasks
  • ClearPedTasksImmediately
  • ClearPlayerWantedLevel
  • CreateObject
  • CreateObjectNoOffset
  • CreatePed
  • CreatePedInsideVehicle
  • CreateVehicle
  • DeleteEntity
  • DeleteFunctionReference
  • DeleteResourceKvp
  • DeleteResourceKvpNoSync
  • DoesEntityExist
  • DoesPlayerOwnSku
  • DoesPlayerOwnSkuExt
  • DropPlayer
  • DuplicateFunctionReference
  • EnableEnhancedHostSupport
  • EndFindKvp
  • EnsureEntityStateBag
  • ExecuteCommand
  • FindKvp
  • FlagServerasPrivate
  • FlushResourceKvp
  • FreezeEntityPosition
  • GetAirDragMultiplierforPlayersVehicle
  • GetAllObjects
  • GetAllPeds
  • GetAllVehicles
  • GetConsoleBuffer
  • GetConvar
  • GetConvarInt
  • GetCurrentResourceName
  • GetEntityAttachedTo
  • GetEntityCoords
  • GetEntityHeading
  • GetEntityHealth
  • GetEntityMaxHealth
  • GetEntityModel
  • GetEntityPopulationType
  • GetEntityRotation
  • GetEntityRotationVelocity
  • GetEntityRoutingBucket
  • GetEntityScript
  • GetEntitySpeed
  • GetEntityType
  • GetEntityVelocity
  • GetGameBuildNumber
  • GetGameName
  • GetGameTimer
  • GetHashKey
  • GetHeliMainRotorHealth
  • GetHeliTailRotorHealth
  • GetHostId
  • GetInstanceId
  • GetInvokingResource
  • GetIsVehicleEngineRunning
  • GetIsVehiclePrimaryColourCustom
  • GetIsVehicleSecondaryColourCustom
  • GetLandingGearState
  • GetLastPedinVehicleSeat
  • GetNumPlayerIdentifiers
  • GetNumPlayerIndices
  • GetNumPlayerTokens
  • GetNumResourceMetadata
  • GetNumResources
  • GetPasswordHash
  • GetPedArmour
  • GetPedCauseofDeath
  • GetPedDesiredHeading
  • GetPedinVehicleSeat
  • GetPedMaxHealth
  • GetPedScriptTaskCommand
  • GetPedScriptTaskStage
  • GetPedSourceofDamage
  • GetPedSourceofDeath
  • GetPedSpecificTaskType
  • GetPlayerCameraRotation
  • GetPlayerEndpoint
  • GetPlayerFakeWantedLevel
  • GetPlayerFromIndex
  • GetPlayerGuid
  • GetPlayerIdentifier
  • GetPlayerInvincible
  • GetPlayerLastMsg
  • GetPlayerMaxArmour
  • GetPlayerMaxHealth
  • GetPlayerMeleeWeaponDamageModifier
  • GetPlayerName
  • GetPlayerPed
  • GetPlayerPing
  • GetPlayerRoutingBucket
  • GetPlayerTeam
  • GetPlayerTimeinPursuit
  • GetPlayerToken
  • GetPlayerWantedCentrePosition
  • GetPlayerWantedLevel
  • GetPlayerWeaponDamageModifier
  • GetPlayerWeaponDefenseModifier
  • GetPlayerWeaponDefenseModifier_2
  • GetRegisteredCommands
  • GetResourcebyFindIndex
  • GetResourceKvpFloat
  • GetResourceKvpInt
  • GetResourceKvpString
  • GetResourceMetadata
  • GetResourcePath
  • GetResourceState
  • GetSelectedPedWeapon
  • GetStateBagValue
  • GetTrainCarriageEngine
  • GetTrainCarriageIndex
  • GetVehicleBodyHealth
  • GetVehicleColours
  • GetVehicleCustomPrimaryColour
  • GetVehicleCustomSecondaryColour
  • GetVehicleDashboardColour
  • GetVehicleDirtLevel
  • GetVehicleDoorLockStatus
  • GetVehicleDoorStatus
  • GetVehicleDoorsLockedforPlayer
  • GetVehicleEngineHealth
  • GetVehicleExtraColours
  • GetVehicleFlightNozzlePosition
  • GetVehicleHandbrake
  • GetVehicleHeadlightsColour
  • GetVehicleHomingLockonState
  • GetVehicleInteriorColour
  • GetVehicleLightsState
  • GetVehicleLivery
  • GetVehicleLockonTarget
  • GetVehicleNumberPlateText
  • GetVehicleNumberPlateTextIndex
  • GetVehiclePedIsIn
  • GetVehiclePetrolTankHealth
  • GetVehicleRadioStationIndex
  • GetVehicleRoofLivery
  • GetVehicleSteeringAngle
  • GetVehicleType
  • GetVehicleTyreSmokeColor
  • GetVehicleWheelType
  • GetVehicleWindowTint
  • GiveWeaponComponenttoPed
  • GiveWeapontoPed
  • HasEntityBeenMarkedasNoLongerNeeded
  • HasVehicleBeenOwnedbyPlayer
  • InvokeFunctionReference
  • IsAceAllowed
  • IsDuplicityVersion
  • IsEntityVisible
  • IsPedaPlayer
  • IsPlayerAceAllowed
  • IsPlayerCommerceInfoLoaded
  • IsPlayerCommerceInfoLoadedExt
  • IsPlayerEvadingWantedLevel
  • IsPlayerUsingSuperJump
  • IsPrincipalAceAllowed
  • IsVehicleEngineStarting
  • IsVehicleExtraTurnedOn
  • IsVehicleSirenOn
  • IsVehicleTyreBurst
  • LoadPlayerCommerceData
  • LoadPlayerCommerceDataExt
  • LoadResourceFile
  • MumbleCreateChannel
  • MumbleIsPlayerMuted
  • MumbleSetPlayerMuted
  • NetworkGetEntityFromNetworkId
  • NetworkGetEntityOwner
  • NetworkGetFirstEntityOwner
  • NetworkGetNetworkIdFromEntity
  • NetworkGetVoiceProximityOverride
  • PerformHttpRequestInternal
  • PerformHttpRequestInternalEx
  • PrintStructuredTrace
  • ProfilerEnterScope
  • ProfilerExitScope
  • ProfilerIsRecording
  • RegisterCommand
  • RegisterConsoleListener
  • RegisterResourceasEventHandler
  • RegisterResourceAsset
  • RegisterResourceBuildTaskFactory
  • RemoveAllPedWeapons
  • RemoveBlip
  • RemoveStateBagChangeHandler
  • RemoveWeaponComponentFromPed
  • RemoveWeaponFromPed
  • RequestPlayerCommerceSession
  • SaveResourceFile
  • ScheduleResourceTick
  • SetBlipSprite
  • SetConvar
  • SetConvarReplicated
  • SetConvarServerInfo
  • SetCurrentPedWeapon
  • SetEntityCoords
  • SetEntityDistanceCullingRadius
  • SetEntityHeading
  • SetEntityRotation
  • SetEntityRoutingBucket
  • SetEntityVelocity
  • SetGameType
  • SetHttpHandler
  • SetMapName
  • SetPedAmmo
  • SetPedArmour
  • SetPedCanRagdoll
  • SetPedComponentVariation
  • SetPedConfigFlag
  • SetPedDefaultComponentVariation
  • SetPedEyeColor
  • SetPedFaceFeature
  • SetPedHairColor
  • SetPedHeadBlendData
  • SetPedHeadOverlay
  • SetPedHeadOverlayColor
  • SetPedIntoVehicle
  • SetPedPropIndex
  • SetPedRandomComponentVariation
  • SetPedRandomProps
  • SetPedResetFlag
  • SetPedtoRagdoll
  • SetPedtoRagdollWithFall
  • SetPlayerControl
  • SetPlayerCullingRadius
  • SetPlayerInvincible
  • SetPlayerModel
  • SetPlayerRoutingBucket
  • SetPlayerWantedLevel
  • SetResourceKvp
  • SetResourceKvpFloat
  • SetResourceKvpFloatNoSync
  • SetResourceKvpInt
  • SetResourceKvpIntNoSync
  • SetResourceKvpNoSync
  • SetRoutingBucketEntityLockdownMode
  • SetRoutingBucketPopulationEnabled
  • SetStateBagValue
  • SetVehicleAlarm
  • SetVehicleBodyHealth
  • SetVehicleColourCombination
  • SetVehicleColours
  • SetVehicleCustomPrimaryColour
  • SetVehicleCustomSecondaryColour
  • SetVehicleDirtLevel
  • SetVehicleDoorBroken
  • SetVehicleDoorsLocked
  • SetVehicleNumberPlateText
  • StartFindKvp
  • StartResource
  • StopResource
  • TaskCombatPed
  • TaskDriveBy
  • TaskEnterVehicle
  • TaskEveryoneLeaveVehicle
  • TaskGoStraighttoCoord
  • TaskGotoCoordAnyMeans
  • TaskGotoEntity
  • TaskHandsUp
  • TaskLeaveAnyVehicle
  • TaskLeaveVehicle
  • TaskPlayAnim
  • TaskPlayAnimAdvanced
  • TaskReactandFleePed
  • TaskShootatCoord
  • TaskShootatEntity
  • TaskWarpPedIntoVehicle
  • TempBanPlayer
  • TriggerClientEventInternal
  • TriggerEventInternal
  • TriggerLatentClientEventInternal
  • VerifyPasswordHash
  • WasEventCanceled


Справочник по сценариям