Fix(Client): Fixed what rocky broke

This commit is contained in:
chip committed 2020-08-31 23:18:13 +02:00
1 parent c5e750c6b2
commit 0312d2c4a6
2 files changed
+14 -4

No files matched your search

+2 -4
View File
@@ -1,10 +1,9 @@
import React from "react"; import React from "react";
import { Box, makeStyles, Backdrop, Paper, Container } from "@material-ui/core"; import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
import { red } from "@material-ui/core/colors";
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
wrapper: { wrapper: {
height: "80vh", height: "67vh",
overflow: "auto", overflow: "auto",
}, },
box: { box: {
@@ -18,7 +17,6 @@ const useStyles = makeStyles((theme) => ({
}, },
paper: { paper: {
width: "100%", width: "100%",
height: "80vh",
}, },
})); }));
+12
View File
@@ -6,6 +6,17 @@ Citizen.CreateThread(function()
Citizen.Wait(0) Citizen.Wait(0)
end end
end) end)
RegisterCommand('phone:close', function(source, args, rawCommand)
SendNUIMessage( -- Hides phone
{
app = 'PHONE',
method = 'setVisibility',
data = false
}
)
SetNuiFocus(false, false)
end)
----- -----
--END OF ESX --END OF ESX
----- -----
@@ -31,6 +42,7 @@ Citizen.CreateThread(function()
} }
) )
SetNuiFocus(true, true) SetNuiFocus(true, true)
TriggerServerEvent('phone:getCredentials', source)
elseif isPhoneOpen == true then elseif isPhoneOpen == true then
isPhoneOpen = false isPhoneOpen = false
print(Config.KeyTogglePhone) --Left for testing purposes. print(Config.KeyTogglePhone) --Left for testing purposes.