Hi guys,
Quick question, the hook “ply:CanAfford”, ply:AddMoney", “GAMEMODE:Notify” (DarkRP hooks), is there a similar hook for nutscript? This is what it’s for.
–CUSTOM GAMEMODE? - You will need to change these to your gamemode functions if you’re not using DarkRP.
function Kun_CanAfford(ply,amt)
if(Kun_Fish_DarkRPVersion == 1) then
if(ply:canAfford(amt)) then return true else return false end
else
if(Kun_Fish_DarkRPVersion == 2) then
if(ply:CanAfford(amt)) then return true else return false end
else
–Add gamemode canAfford function here
end
end
end
function Kun_AddMoney(ply,amt)
if(Kun_Fish_DarkRPVersion == 1) then
ply:addMoney(amt)
else
if(Kun_Fish_DarkRPVersion == 2) then
ply:AddMoney(amt)
else
**--Add gamemode addMoney function here**
end
end
end
function Kun_Notify(ply,txt)
if(Kun_Fish_DarkRPVersion == 1) then
DarkRP.notify(ply, 0, 4, txt)
else
if(Kun_Fish_DarkRPVersion == 2) then
GAMEMODE:Notify(ply, 0, 4, txt)
else
**--Add gamemode notify function here**
end
end
end
Not my coding, this is for an addon script for fishing.