Gallagher Posted January 20, 2014 Share Posted January 20, 2014 why not work? I want to change the maximum_clip_ammo https://wiki.multitheftauto.com/wiki/SetWeaponProperty function clip() setWeaponProperty("minigun", "poor", "maximum_clip_ammo", 1000) setWeaponProperty("minigun", "pro", "maximum_clip_ammo", 20) end addEventHandler("onClientResourceStart", root, clip) Link to comment
DiSaMe Posted January 20, 2014 Share Posted January 20, 2014 Perhaps because 'setWeaponProperty' is server-sided while "onClientResourceStart" is client-sided? Link to comment
Gallagher Posted January 20, 2014 Author Share Posted January 20, 2014 Perhaps because 'setWeaponProperty' is server-sided while "onClientResourceStart" is client-sided? and how should I do? Link to comment
Karuzo Posted January 20, 2014 Share Posted January 20, 2014 Just replace onClientResourceStart with onResourceStart. Link to comment
Castillo Posted January 20, 2014 Share Posted January 20, 2014 Set the script as server side ( type="server" in meta.xml ) and change your event name to "onResourceStart" instead of "onClientResourceStart". Also, replace "root" with "resourceRoot". Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now