1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

attempt to call method 'Getowning_ent'

Discussion in 'DarkRP Modding Questions & Help' started by gbeorg23, Jul 11, 2019.

Tags:
  1. gbeorg23

    gbeorg23 New Member

    guys i need help


    [ERROR] gamemodes/darkrp/entities/entities/ent_note/cl_init.lua:85: attempt to call method 'Getowning_ent' (a nil value) 1. Function - gamemodes/darkrp/entities/entities/ent_note/cl_init.lua:85 2. unknown - lua/includes/modules/usermessage.lua:87

    part of the code where the error appears

    if self:Getowning_ent() != pPlayer:Name() then
    DescEntry:SetVisible(false)
    RichText:SetVisible(true)
    else
    DescEntry:SetVisible(true)
    RichText:SetVisible(false)
    end
    lua

    1. I included shared.lua
    2. i added this thing in shared.lua


    function ENT:SetupDataTables()
    self:NetworkVar("Entity", 0, "owning_ent")
    end
     

Share This Page