I am trying to create a TTT version of rocket boots but I have encounted the error below
I am not entirely sure how to fix this error and so I am asking for your help. The instance in which it is used can be found below:
So, how could I fix this? If any more information is needed, I’ll happily supply
Thanks for any help in advance!
I assume Rocket Boots is some kind of gamemode or addon, and it adds a method to the Player metatable called GiveRocketBoots. But you’re not using that gamemode, you’re deriving from TTT, so the GiveRocketBoots function was never defined in the context you’re using it.
You’ll have to migrate a lot of the RocketBoots code to work with TTT. I have no idea what RocketBoots are and I’ve actually never played or experimented with TTT either, so I have no idea how difficult that might be.
If you show me what RocketBoots is, maybe I can give you a better direction
local PLY = FindMetaTable("Player")
intTime = intTime or 15
self._wt_RocketBootsEquipped = true
self._wt_RocketBootsEndTime = CurTime()+intTime
if not IsValid(self._wt_RocketBootsEffect) then
local e = ents.Create("wt_rocketboots_thinker")
e:SetParent( self )
self:DeleteOnRemove( e )
self._wt_RocketBootsEffect = e
self._wt_RocketBootsEquipped = false
self._wt_RocketBootsEndTime = CurTime()
if IsValid(self._wt_RocketBootsEffect) then
self._wt_RocketBootsEffect = nil
hook.Add("Think", "RemoveRocketBoots", function()
for k,v in pairs(player.GetAll()) do
if v:HasRocketBoots() then
if v._wt_RocketBootsEndTime<CurTime() then
hook.Add( “PlayerDeath”, “RemovedBoots”, RemoveBoots )[/lua]
[editline]27th March 2016[/editline]
It may be worth noting that it does work. The function is called and the effects take place, it’s just that an error is produced in the process.