Gallagher Posted January 20, 2014 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)
DiSaMe Posted January 20, 2014 Posted January 20, 2014 Perhaps because 'setWeaponProperty' is server-sided while "onClientResourceStart" is client-sided?
Gallagher Posted January 20, 2014 Author Posted January 20, 2014 Perhaps because 'setWeaponProperty' is server-sided while "onClientResourceStart" is client-sided? and how should I do?
Karuzo Posted January 20, 2014 Posted January 20, 2014 Just replace onClientResourceStart with onResourceStart.
Castillo Posted January 20, 2014 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".
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