-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger player_sync.lua
More file actions
75 lines (66 loc) · 3 KB
/
Copy pathlogger player_sync.lua
File metadata and controls
75 lines (66 loc) · 3 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ev = require "lib.samp.events"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
log("{ff0000}", "onfoot_sync logger by RResTarT")
sampRegisterChatCommand("onfoot_logger", starter)
wait(-1)
end
function log(color, text)
sampAddChatMessage(color .. "{ff0000}Logger:{ffffff} " .. text)
end
function starter(status)
if status == "start" then
log("{ffff00}", "Started")
enable = true
end
if status == "stop" then
log("{ffff00}", "Stopped")
enable = false
end
end
function ev.onSendPlayerSync(data)
if enable == true then
print("<------------------------------------------------------RResTarT`s player_sync logger------------------------------------------------------>")
print("leftRightKeys:", data.leftRightKeys)
print("upDownKeys:", data.upDownKeys)
print("keysData:", data.keysData)
print("keys.primaryFire:", data.keys.primaryFire)
print("keys.horn_crouch:", data.keys.horn_crouch)
print("keys.secondaryFire_shoot:", data.keys.secondaryFire_shoot)
print("keys.accel_zoomOut:", data.keys.accel_zoomOut)
print("keys.enterExitCar:", data.keys.enterExitCar)
print("keys.decel_jump:", data.keys.decel_jump)
print("keys.circleRight:", data.keys.circleRight)
print("keys.aim:", data.keys.aim)
print("keys.circleLeft:", data.keys.circleLeft)
print("keys.landingGear_lookback:", data.keys.landingGear_lookback)
print("keys.unknown_walkSlow:", data.keys.unknown_walkSlow)
print("keys.specialCtrlUp:", data.keys.specialCtrlUp)
print("keys.specialCtrlDown:", data.keys.specialCtrlDown)
print("keys.specialCtrlLeft:", data.keys.specialCtrlLeft)
print("keys.specialCtrlRight:", data.keys.specialCtrlRight)
print("keys._unknown:", data.keys._unknown)
print("position.x:", data.position.x)
print("position.y:", data.position.y)
print("position.z:", data.position.z)
print("quaternion[1]:", data.quaternion[1])
print("quaternion[2]:", data.quaternion[2])
print("quaternion[3]:", data.quaternion[3])
print("quaternion[4]:", data.quaternion[4])
print("health:", data.health)
print("armor:", data.armor)
print("weapon:", data.weapon)
print("specialKey:", data.specialKey)
print("specialAction:", data.specialAction)
print("moveSpeed.x:", data.moveSpeed.z)
print("moveSpeed.y:", data.moveSpeed.y)
print("moveSpeed.z:", data.moveSpeed.z)
print("surfingOffsets.x:", data.surfingOffsets.x)
print("surfingOffsets.y:", data.surfingOffsets.y)
print("surfingOffsets.z:", data.surfingOffsets.z)
print("surfingVehicleId:", data.surfingVehicleId)
print("animationId:", data.animationId)
print("animationFlags:", data.animationFlags)
end
end