Page cover

🍏Internal API

List of functions that can be called natively inside the resource, either by added files, or ConfiurableFunctions.lua.

This section is unfinished, please be patient.

Functions in Effects/

Blackout.lua

Example

DoBlackoutToPed(targetEntity, weaponData, boneData, hitId)

Arguments targetEntity,weaponData,boneData,hitId Description Triggers the effect "Blackout" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Bleedout.lua

Example

DoBleedoutToPed(targetEntity, weaponData, boneData, drawBlood, localizedHitCoords, hitId)

Arguments targetEntity,weaponData,boneData,drawBlood,localizedHitCoords,hitId Description Triggers the effect "Bleedout" against the target entity. Function Info Client sided function. Not threaded at all.

Example

ClearEntityBleedingWounds(entity)

Arguments

entity Description Clears all bleeding wounds of an entity, stopping the effect for the entity. Function Info Client sided function. Not threaded at all.

BoneFracture.lua

Example

Arguments targetEntity,weaponData,boneData,hitId Description Triggers the effect "Bone Fracture" against the target entity. Function Info Client sided function. Not immediately threaded after call. This effect only effects players.

Concussion.lua

Example

Arguments targetEntity,weaponData,hitId Description Triggers the effect "Concussion" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Damage.lua

Example

Arguments targetEntity,weaponData,boneData, distance, armorData, armorActive,hitId Description Triggers the effect "Damage" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Paralyzation.lua

Example

Arguments targetEntity,weaponData,hitCoords,hitId Description Triggers the effect "Paralyzation" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Ragdoll.lua

Example

Arguments targetEntity,weaponData,boneData, armorData, armorActive,hitId Description Triggers the effect "Ragdoll" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Shock.lua

Example

Arguments targetEntity,weaponData,hitId Description Triggers the effect "Shock" against the target entity. Function Info Client sided function. Not immediately threaded after call.

TBI.lua

Example

Arguments targetEntity,weaponData,boneData,hitId Description Triggers the effect "TBI" against the target entity. Function Info Client sided function. Not immediately threaded after call.

TunnelVision.lua

Example

Arguments targetEntity,weaponIndex,boneGroup,hitId Description Triggers the effect "TunnelVision" against the target entity. Function Info Client sided function. Not immediately threaded after call.

Functions in Systems/

ClientUtils/

Hardkill.lua

Example

Arguments targetEntity Description Terminates all active effects on the entity. This will also terminate visual effects and camera shaking, but not injured walking. Alternatively, you can use the export HardkillAllEffects to call this externally. Function Info Client sided function. Not threaded.

MiscFunctions.lua

Example

Arguments referenceEntity , shouldBeDead Description Returns the nearest entity to a reference entity. This entity must be within "NPMinDist" (under Config) from the reference entity. Alternatively, you can use GetNearestPedToEntity or GetNearestDeadPedToEntity exports to call this function externally. Will return nil if there is no nearby entity. Function Info Client sided function. Not threaded.

Example

Description Returns the local UTC time as a string. Alternatively, you can use GetLocalTimeFormatted export to call this function externally. Function Info Client sided function. Not threaded.

Example

Arguments entity , intensity Description Sets the players screen shake to drunk. Function will verify the entity is the playerPed. Function Info Client sided function. Not threaded.

Example

Arguments localizationTableKey , keys , values Description Localizes a string of text, or replaces multiple values, and sends it to CF_NOTIFY(). While like Localize and Localization, this one will not return any value, but directly notify the client. Additionally, keys and values may be nil. Keys are a table {} of multiple terms to search for, while values are what to replace that with. Values may be a string for declared replacement, while numbers reference the localization table inside of the Config file. Function Info Client sided function. Not threaded.

Example

Arguments vehicleModelHash Description Returns the data from Datasets/StandaloneSpecific/Vehicles.lua for the specific model hash. Function Info Client sided function. Not threaded.

Example

Arguments entity Description Sets the entity to be persistent on onesync servers. Function Info Client sided function. Not threaded.

Last updated

Was this helpful?