I have economy but plugin cannot get players money
This is my config but it cannot get value I only see 0
http://prntscr.com/l28uwr
this is it.
is the problem can be about the hook? it is not about economy plugin .
Ty,
"Balance": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": true,
"Available": true,
"BackgroundColor": "0 0 0 0",
"Dock": "BottomDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0",
"Height": 0.9,
"Margin": "0 -4.36 4 0",
"Order": 1,
"Url": "",
"Width": 0.1
},
"Margin": "0 0.012 0 0.0007",
"Order": 3,
"Text": {
"Align": 4,
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Content": "",
"FadeIn": 0.0,
"FadeOut": 0.0,
"FontColor": "1 1 1 1",
"FontSize": 12,
"Height": 1.0,
"Margin": "0 -0.04 4 0",
"Order": 6,
"Width": 0.76
},
"Width": 0.13
},This is my config but it cannot get value I only see 0
http://prntscr.com/l28uwr
this is it.
public double GetBalance(string PlayerID)
{
var player = RustCore.FindPlayerByIdString(PlayerID);
if (player == null) return 0;
return (double)(Interface.Oxide.CallHook("GetPlayerMoney", player.userID) ?? 0.0);
}is the problem can be about the hook? it is not about economy plugin .
Ty,