From f19bb82d9a45c03fdca73cc48794471c817589bb Mon Sep 17 00:00:00 2001 From: ArkSeyonet <31637812+ArkSeyonet@users.noreply.github.com> Date: Wed, 6 Sep 2017 07:50:54 -0500 Subject: [PATCH] Update main.lua --- server/main.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/server/main.lua b/server/main.lua index 823ce96d..df7e1429 100644 --- a/server/main.lua +++ b/server/main.lua @@ -127,8 +127,14 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source, }) local user = result[1] - local firstname = user['firstname'] - local lastname = user['lastname'] + local firstname = user['firstname'] + local lastname = user['lastname'] + local sex = user['sex'] + local dob = tostring(user['dateofbirth']) + local heightInit = user['height'] + local heightFeet = tonumber(string.format("%.0f",heightInit / 12, 0)) + local heightInches = heightInit % 12 + local height = heightFeet .. "\' " .. heightInches .. "\"" local data = { name = GetPlayerName(target), @@ -137,7 +143,10 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source, accounts = xPlayer.accounts, weapons = xPlayer.loadout, firstname = firstname, - lastname = lastname + lastname = lastname, + sex = sex, + dob = dob, + height = height } TriggerEvent('esx_status:getStatus', _source, 'drunk', function(status)