Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont run player methods if player is NULL #3138

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

wrefgtzweve
Copy link
Member

self:GetOwner returns NULL during SWEP:OnDrop

Fixes:

addons/wire/lua/weapons/remotecontroller.lua:97: attempt to call method 'DrawViewModel' (a nil value)
   1.  DrawViewModel - [C]:-1
    2.  Off - addons/wire/lua/weapons/remotecontroller.lua:97
     3.  unknown - addons/wire/lua/weapons/remotecontroller.lua:56
      4.  DropWeapon - [C]:-1
       5.  func - addons/loose-scripts/lua/autorun/server/weapon_drop.lua:13
        6.  Run - addons/ulib/lua/includes/modules/hook.lua:260
         7.  func - addons/gmod-custom-chat/lua/custom_chat/server/net_messages.lua:56
          8.  unknown - lua/includes/extensions/net.lua:38

@thegrb93 thegrb93 merged commit 11a153b into wiremod:master Sep 30, 2024
1 check failed
@wrefgtzweve wrefgtzweve deleted the fix-null-error branch September 30, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants