HexscriptsClassicSync
Exports
This section lists all client-side and server-side exports in this script. Exports can be called from other scripts to interact with this script functionality.
Note
If you need additional exports for your implementation, please open a ticket on our Discord server.
Client Exports
GetPlayerDeathCause
Returns the hash of the weapon/model/object that killed the ped.
local hash = exports['hex_sync']:GetPlayerDeathCause()Server Exports
GetPlayerDeathCause
Returns the hash of the weapon/model/object that killed the player.
local hash = exports['hex_sync']:GetPlayerDeathCause(playerId)Prop
Type
SetCustomDamage
Sets custom damage values for each body part for a specific weapon. if false it will reset the damage values to default.
exports['hex_sync']:SetCustomDamage(playerId, weaponTable)Prop
Type
Example:
RegisterCommand('setCustomDamage', function(playerId, args)
exports['hex_sync']:SetCustomDamage(playerId, {
[joaat('WEAPON_PISTOL')] = {
['PELVIS'] = 1,
['L_CALF'] = 1,
['L_FOOT'] = 1,
['L_PH_FOOT'] = 1,
['R_CALF'] = 1,
['R_FOOT'] = 1,
['R_PH_FOOT'] = 1,
['SPINE'] = 1,
['SPINE1'] = 1,
['SPINE2'] = 1,
['SPINE3'] = 1,
['R_UPPERARM'] = 1,
['R_FOREARM'] = 1,
['R_HAND'] = 1,
['R_FINGERS'] = 1,
['L_UPPERARM'] = 1,
['L_FOREARM'] = 1,
['L_HAND'] = 1,
['L_FINGERS'] = 1,
['NECK'] = 1,
['HEAD'] = 1
}
})
end)
RegisterCommand('removeCustomDamage', function(playerId, args)
exports['hex_sync']:SetCustomDamage(playerId, false)
end)