RevTheDev / rewards

Daily rewards for FiveM
Eclipse Public License 2.0
14 stars 6 forks source link

/daily not a valid command #7

Open lgnd010 opened 2 years ago

lgnd010 commented 2 years ago

Describe the bug /daily not a valid command

To Reproduce Steps to reproduce the behavior:

  1. Go to chat
  2. write /daily
  3. Getting error /daily not a valid command

I did put Config.Command = true -- Change command to true to switch to /daily in config.lua

When i do by blip i can acces to daily menu..

can u help me

SkinnyDragonCodes commented 2 years ago

Change the command registration as you are probably using a diff version of ESX. (Insert new line between the end of register command and start of trigger client event, not sure why it is formatting weird...)

if Config.Command then RegisterCommand("daily", function (source, args, user) TriggerClientEvent("free:toggleFreeMenu", source, true) end) end