Hello.
I need help with my command here, I don't have any clue how to fix this.
No errors coming up.
I want this code to place "" around the name and reason
ex: /givepoint "name" "reason" if you understand.
function ulx.givepoint( calling_ply, target_ply, reason )
if reason and reason ~= "" then
else
reason = nil
end
ULib.queueFunctionCall( ULib.givepoint, "target_ply", "reason", calling_ply )
end
local givepoint = ulx.command( "POINTS", "ulx givepoint", ulx.givepoints, "/givepoint", true )
givepoint:addParam{ type=ULib.cmds.PlayerArg }
givepoint:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_givepoint_reasons }
givepoint:defaultAccess( ULib.ACCESS_ADMIN )
givepoint:help( "Giv RP-Points ud " )