From 4dc790370472d3b3297bdc3b2a7d87441aa84af9 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 20 Dec 2019 15:28:48 +0000 Subject: [PATCH] Rewrote PLY table definition --- cl_radar.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 26b6e3e..3bf3bd1 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -33,11 +33,13 @@ end ) --[[---------------------------------------------------------------------------------- Player info variables ----------------------------------------------------------------------------------]]-- -local PLY = {} -PLY.ped = PlayerPedId() -PLY.veh = nil -PLY.inDriverSeat = false -PLY.vehClassValid = false +local PLY = +{ + ped = PlayerPedId(), + veh = nil, + inDriverSeat = false, + vehClassValid = false +} -- Used to check if the player is in a position where the radar should be allowed operation function PLY:VehicleStateValid()