1- AddInteraction (" putInVehicle" , {
2- runServer = true ,
1+ lia . playerinteract . addInteraction (" putInVehicle" , {
2+ serverOnly = true ,
33 shouldShow = function (client , target )
44 if not simfphys then return false end
55 local es = ents .FindInSphere (client :GetPos (), 150 )
3838 end
3939})
4040
41- AddInteraction (" removeCuffedPassengers" , {
42- runServer = true ,
41+ lia . playerinteract . addInteraction (" removeCuffedPassengers" , {
42+ serverOnly = true ,
4343 shouldShow = function (client )
4444 for _ , v in pairs (ents .FindInSphere (client :GetPos (), 150 )) do
4545 if v :IsPlayer () and v :InVehicle () and v :IsHandcuffed () then return true end
@@ -54,8 +54,8 @@ AddInteraction("removeCuffedPassengers", {
5454 end
5555})
5656
57- AddInteraction (" tie" , {
58- runServer = true ,
57+ lia . playerinteract . addInteraction (" tie" , {
58+ serverOnly = true ,
5959 shouldShow = function (client , target ) return client :getChar ():getInv ():hasItem (" tie" ) and IsValid (target ) and not target :IsHandcuffed () end ,
6060 onRun = function (client , target )
6161 if not SERVER then return end
@@ -79,8 +79,8 @@ AddInteraction("tie", {
7979 end
8080})
8181
82- AddInteraction (" unTie" , {
83- runServer = true ,
82+ lia . playerinteract . addInteraction (" unTie" , {
83+ serverOnly = true ,
8484 shouldShow = function (_ , target ) return target :IsHandcuffed () end ,
8585 onRun = function (client , target )
8686 if not SERVER then return end
0 commit comments