This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateThread(function() | |
Citizen.InvokeNative(0x144da052257ae7d8, true) | |
print("ENABLED NETWORK ALLOW REMOTE SYNC OF LOCAL PLAYERS") | |
end) | |
function GetNearestPlayerToMe() | |
local players = GetActivePlayers() | |
local closestPlayer, closestDistance = nil, 100000 | |
local myPos = GetEntityCoords(PlayerPedId()) | |
local myPlayerId = PlayerId() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to CodeWalker for the code to read .ypt files: https://github.com/dexyfex/CodeWalker | |
# | |
# Format: | |
# [asset_name] | |
# effect_name_1 | |
# effect_name_2 | |
# | |
[core] | |
bul_gravel_heli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static class DamagePack | |
{ | |
public static void ApplyDamagePack(this Ped ped, string damagePackName, float damage, float multiplier) | |
{ | |
NativeFunction.Natives.ApplyPedDamagePack(ped, damagePackName, damage, multiplier); | |
} | |
public const string BigHitByVehicle = "BigHitByVehicle"; | |
public const string SCR_Dumpster = "SCR_Dumpster"; | |
public const string SCR_Torture = "SCR_Torture"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Rage; | |
using Rage.Native; | |
internal class PedHeadshot | |
{ | |
private uint handle; | |
public uint Handle { get { return handle; } } | |
private Ped ped; | |
public Ped Ped { get { return ped; } } |