Pranter Posted February 6, 2017 Share Posted February 6, 2017 (edited) Hello i have problem, maybe someone can help me to solve it. So there is client-side: if (distance > 1) then local money = distance*0.6 local illegalString = "No" if (illegal) then money = distance*0.6 illegalString = "Yes" end this after in some thing when he finnish the route. triggerServerEvent("payTrucker", localPlayer, localPlayer, money) (and server side) function payTrucker() exports.global:giveMoney(source, money) end addEvent("payTrucker", true) addEventHandler("payTrucker", root, payTrucker) But it doesnt work Edited February 6, 2017 by Pranter Link to comment
Captain Cody Posted February 7, 2017 Share Posted February 7, 2017 ..... Change - exports.global:giveMoney(source, money) to givePlayerMoney(source, money) Unless you're running some sort of fancy money system (You'd need to post that code) 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