Did you also change the urls in scripts.js?
Yea, the issue is otherâs are renaming the name without changing these values.
Thatâs why yours works then. Other people are renaming without changing the urls
so how u fix this u say go into script.js?
Either change the links to whatever you called your folder or keep the banking folder named âbankingâ
Bonjour,
Pour ceux qui voudrais dĂ©sactiver les mouvement des joueurs avec la manette lors quâils sont dans le menu.
voila les lignes a modifier dans le client.lua
Hello,
For those who would disable the movement of players with the joystick when they are in the menu.
Here are the rows to modify in the client.lua
â Disable controls while GUI open
Citizen.CreateThread(function()
while true do
if bankOpen or atmOpen then
local ply = GetPlayerPed(-1)
local active = true
FreezeEntityPosition(GetPlayerPed(-1), true) â freeze player
DisableControlAction(0, 1, active) â LookLeftRight
DisableControlAction(0, 2, active) â LookUpDown
DisableControlAction(0, 24, active) â Attack
DisablePlayerFiring(ply, true) â Disable weapon firing
DisableControlAction(0, 142, active) â MeleeAttackAlternate
DisableControlAction(0, 106, active) â VehicleMouseControlOverride
if IsDisabledControlJustReleased(0, 24) or IsDisabledControlJustReleased(0, 142) then â MeleeAttackAlternate
SendNUIMessage({type = âclickâ})
end
end
Citizen.Wait(0)
end
end)
â NUI Callback Methods
RegisterNUICallback(âcloseâ, function(data, cb)
closeGui()
FreezeEntityPosition(GetPlayerPed(-1), false) â unfreeze player
cb(âokâ)
end)
Warning : new duplication method.
There are dupe method with money transfer, someone on my server use transfer for get âcheated moneyâ he canât explain how butâs itâs real, and there are a bug, lot of players cant transfert money (error : not enought money in account) while they have
Update 2.04 27/04/17
Bug Fixes:
- Can no longer transfer to self. Should solve the bug @Havanna told me about
Thanks @Havanna
Still not sure whats causing not enough money error for some. Will need to look into that one a bit more.
Hey GBJoel, Iâve a problem with the script. It occured only when an other player try to use the TRANSFER function to give me money. The /transfer works but the GUI one is causing problem
Can you pm me a screenshot or more details please?
I canât PM you cause Iâve a fresh account so Iâll explain
We are 2 on the server and when we want to use transfer in a bank only one character can send money. The one who is connected in first to the server. To simplify P1 can send money to P2 but P2 canât send to P1. Got âCannot transfer to selfâ error.
PS : I use the last server.lua that you posted on GitHub
Ahh ok, thanks! Iâll look into it
Kind of noob question here but for some reason it wonât let me import the db.sql into my existing DB?
Gonna need more than that. What errors does it give?
[Window Title]
Unnamed: Error
[Content]
SQL Error (1146): Table âdb7506.usersâ doesnât exist
[OK]
[Footer]
Find some help on this error
Have you installed essentialmode and set up the essentialmode DB?
Yeah I have. I have the files in my ftp, yml etc, how do I ensure its on my DB correctly?
Send a screenshot of your database, would help a bit. Because users table doesnât exist in db7506, where you try to import.