ULX

Author Topic: How to make it so freeze is disabled if being whipped?  (Read 1715 times)

0 Members and 2 Guests are viewing this topic.

Offline JohnnyAppleseed

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
How to make it so freeze is disabled if being whipped?
« on: October 24, 2015, 11:18:29 AM »
Hello everyone! I run a darkrp server, and I would like to figure out how to make it so that if a player is being whipped, they can't be frozen?
Code: [Select]
if v.whipped then
ULib.tsayError( calling_ply, v:Nick() .. " is being whipped!", true )
v:Unlock()
v.frozen = nil
ulx.clearExclusive( v )
end
that's what we've tried. But it doesn't work!

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given