From 8c2b766dbd0f44d74aa692d34b99e175b6159f85 Mon Sep 17 00:00:00 2001 From: MoskalykA <100430077+MoskalykA@users.noreply.github.com> Date: Sat, 31 Dec 2022 15:15:57 +0100 Subject: [PATCH] fix: correction of the two errors in the example --- esx_example/client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esx_example/client/main.lua b/esx_example/client/main.lua index fe995759..696a6fa8 100644 --- a/esx_example/client/main.lua +++ b/esx_example/client/main.lua @@ -1,6 +1,6 @@ RegisterNetEvent('esx:playerLoaded') -- Store the players data AddEventHandler('esx:playerLoaded', function(xPlayer, isNew) - print("Player Loaded. New | " .. isNew) + print(('Player Loaded. New | %s'):format(isNew)) ESX.PlayerData = xPlayer ESX.PlayerLoaded = true end) @@ -23,7 +23,7 @@ end) function OnPlayerData(key, val, last) if type(val) == 'table' then val = json.encode(val) end - print('PlayerData.'..key..' was set to '..val) + print(('PlayerData.%s was set to %s'):format(key, val)) if key == 'job' then if last.name ~= val.name then print('You are now in a different job')