-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.lua
More file actions
32 lines (29 loc) · 979 Bytes
/
client.lua
File metadata and controls
32 lines (29 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Citizen.CreateThread(function()
if Config.EnableCommonLogs == false then
return
end
while true do
Citizen.Wait(Config.CommonLogRate)
print("==== AIMING ====")
print("IsAimCamActive: ", IsAimCamActive())
print("IsPlayerFreeAiming: ", IsPlayerFreeAiming())
print("")
print("==== VEHICLE ====")
print("IsPedInAnyVehicle: ", IsPedInAnyVehicle(PlayerPedId(), true))
print("IsPedDoingDriveby: ", IsPedDoingDriveby(PlayerPedId()))
print("")
print("==== VEHICLE ====")
print("GetRenderingCam: ", GetRenderingCam())
print("GetGameplayCamFov: ", GetGameplayCamFov())
print("")
end
end)
local weapons_to_add = {
"WEAPON_PISTOL",
"WEAPON_ASSAULTRIFLE",
}
RegisterCommand("giveweapon", function(source, args)
for _, weapons in pairs(weapons_to_add) do
GiveWeaponToPed(PlayerPedId(), GetHashKey(weapons), 999, false, false)
end
end)