Skip to content

Commit 8d1cffa

Browse files
committed
Fix not safe for net
1 parent c9f8397 commit 8d1cffa

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
3+
# Lua and web files - always treat as text
4+
*.lua text eol=lf
5+
*.js text eol=lf
6+
*.html text eol=lf
7+
*.css text eol=lf
8+
*.json text eol=lf
9+
*.xml text eol=lf
10+
*.yml text eol=lf
11+
*.md text eol=lf

client/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local CurrentWeaponData, CanShoot, MultiplierAmount, currentWeapon = {}, true, 0
55

66
-- Handlers
77

8-
AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
8+
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
99
PlayerData = QBCore.Functions.GetPlayerData()
1010
QBCore.Functions.TriggerCallback('qb-weapons:server:GetConfig', function(RepairPoints)
1111
for k, data in pairs(RepairPoints) do

0 commit comments

Comments
 (0)