Skip to content

Instantly share code, notes, and snippets.

@ctsmax
ctsmax / gtav_wattachments.h
Created December 10, 2021 23:01
GTA V weapon attachment unordered map
static std::unordered_map<std::uint32_t, std::vector<const char*>> weaponAttachments =
{
{
joaat("weapon_pistol"),
{
("component_pistol_clip_02"),
("component_at_pi_flsh"),
("component_at_pi_supp_02"),
("component_pistol_varmod_luxe"),
},
@ctsmax
ctsmax / entities.js
Created May 5, 2021 12:40
FiveM entity enumerator made in js
const iterator = (first, move, dispose) =>
{
const ret = [];
const [handle, firstEntity] = first();
if (!handle) {
return ret;
}
ret.push(firstEntity);