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.

createMoneyBag doesn’t work

Discussion in 'DarkRP Modding Questions & Help' started by gaylord69᠌, May 23, 2020 at 12:53 AM.

  1. gaylord69᠌

    gaylord69᠌ New Member

    setting position of the bag by entity:GetPos() and error is
    [DarkRP] gamemodes/darkrp/gamemode/modules/money/sv_money.lua:42: bad argument for #1 to ‘SetPos’ (Vector expected, got table)

    my lua line:
    DarkRP.createMoneyBag(self:GetPos(), self.moneystep)
  2. Zaktak

    Zaktak New Member

    self:GetPos() isn't a Vector. is self actually an entity in this case? you should also enclose it in: If ( IsValid(Entity) ) then -- etc..

Share This Page