Skip to content

Conversation

@sacr1ficez
Copy link
Contributor

@sacr1ficez sacr1ficez commented Nov 2, 2024

  • Use localPlayer instead of root in triggerServerEvent
  • Remove unnecessary variable
  • Add missing player in getPedControlState
  • Disable cache for client.lua

@jlillis
Copy link
Contributor

jlillis commented Nov 5, 2024

Could you fix the linter errors as well?

Checking [gameplay]/superman/client.lua           5 warnings

    [gameplay]/superman/client.lua:173:8: variable player was previously defined as an argument on line 171
    [gameplay]/superman/client.lua:180:8: variable player was previously defined as an argument on line 178
    [gameplay]/superman/client.lua:625:22: used variable _x with unused hint
    [gameplay]/superman/client.lua:625:26: used variable _y with unused hint
    [gameplay]/superman/client.lua:625:30: used variable _z with unused hint

@jlillis
Copy link
Contributor

jlillis commented Nov 5, 2024

Thanks!

@jlillis jlillis merged commit 2b3bc10 into multitheftauto:master Nov 5, 2024
1 check passed
MittellBuurman pushed a commit to MittellBuurman/mtasa-resources that referenced this pull request Nov 11, 2024
* Initial fixes for superman

* Update meta.xml

* Fix lint warnings.
@sacr1ficez sacr1ficez deleted the superman-init-fix branch November 14, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants