@@ -18,7 +18,7 @@ CreateThread(function()
1818 local ply = PlayerPedId ()
1919 local objectCoords = oElement .fObjectCoords
2020 local distanceDiff = # (objectCoords - plyCoords )
21- if (distanceDiff < 2.0 and not inUse ) then
21+ if (distanceDiff < 2.0 and not InUse ) then
2222 if (oElement .fObjectIsBed == true ) then
2323
2424 -- // ARROW RIGHT
@@ -62,10 +62,10 @@ CreateThread(function()
6262 end
6363 end
6464
65- if (inUse ) then
65+ if (InUse ) then
6666 DrawText3Ds (objectCoords .x , objectCoords .y , objectCoords .z , Config .Text .Standup )
6767 if IsControlJustPressed (0 , Config .objects .ButtonToStandUp ) then
68- inUse = false
68+ InUse = false
6969 TriggerServerEvent (' ChairBedSystem:Server:Leave' , oElement .fObjectCoords )
7070 ClearPedTasksImmediately (ply )
7171 FreezeEntityPosition (ply , false )
125125CreateThread (function ()
126126 while Config .Healing ~= 0 do
127127 Wait (Config .Healing * 1000 )
128- if inUse == true then
128+ if InUse == true then
129129 if oElement .fObjectIsBed == true then
130130 local ply = PlayerPedId ()
131131 local health = GetEntityHealth (ply )
@@ -151,7 +151,7 @@ AddEventHandler('ChairBedSystem:Client:Animation', function(v, coords)
151151 PlyLastPos = GetEntityCoords (ped )
152152 FreezeEntityPosition (object , true )
153153 FreezeEntityPosition (ped , true )
154- inUse = true
154+ InUse = true
155155 if isBed == false then
156156 if Config .objects .SitAnimation .dict ~= nil then
157157 SetEntityCoords (ped , objectcoords .x , objectcoords .y , objectcoords .z + 0.5 )
@@ -228,4 +228,4 @@ function Animation(dict, anim, ped)
228228 end
229229
230230 TaskPlayAnim (ped , dict , anim , 8.0 , 1.0 , - 1 , 1 , 0 , 0 , 0 , 0 )
231- end
231+ end
0 commit comments