Features
- Login panel after entering the server
- Block the acces (can’t move)
- Ask correct and match Login / Password
- Can disconnect by button
- Display Error or successful in notification
- Register by simple php script in website
Features to add
- Add a SkyCam so you dont Spawn with a random Ped while logging in
Installation
You need to do some Stuff to make it work!
General
DO NOT CHANGE THE NAME OF THE SCRIPT IF YOU DONT KNOW WHAT YOU ARE DOING!
NOTE: THE PASSWORD IS NOT ENCRYPTED! YOU CAN DO IT YOURSELF IF YOU WANT IT
No The PHP files are not a FiveM Script if you dont have a Webspace or Xampp on your Server this Script is useless!
- Insert the phplogin.sql into your FiveM Database!
- Place your Database data into all php files!
QBCore
We are going to start the Login script before Qb-Multicharacter because the UIs will overlap otherwise
- Go to QB-Multicharacter/main/main.lua and remove this
CreateThread(function() while true do Wait(0) if NetworkIsSessionStarted() then TriggerEvent('qb-multicharacter:client:chooseChar') return end end end)
- You are Done! Lol
ESX
Im Sorry but i didnt test it on ESX but ill will look into it asap!