How to encrypt the client.lua/server.lua?

Hey guys, I’m looking for the program or function Fxap to encrypt my client.lua

For example
client.lua before:


local menuEnabled = false
function ToggleMenu()
  menuEnabled = not menuEnabled
  if menuEnabled then
    local menu = {}
    table.insert(menu, {text = "Menübeispiel"})
    table.insert(menu, {text = "Option 1", callback = Option1})
    table.insert(menu, {text = "Option 2", callback = Option2})

    TriggerEvent("es:setMenuMaxOptionCount", 10)
    TriggerEvent("es:addMenu", menu)
  else
    TriggerEvent("es:removeMenu")
  end
end
function Option1()
  print("Option 1 ausgewählt")
end
function Option2()
  print("Option 2 ausgewählt")
end

client.lua after


FXAP�����.VC����A�

�agK����2�����7�6�lC$�I�d՞c=�8$U?uaai ZXt9�Иg���e@'r

Thank you very much for the people you can help me

Introducing Asset Escrow for your resources ?

1 Like

now it works with the encryption but the “config.lua” is also encrypted but should remain accessible

Use escrow_ignore in your fxmanifest.lua file:

escrow_ignore {
    'path/to/config.lua'
}

thanks its work