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 { Box, makeStyles, Backdrop, Paper, Container } from "@material-ui/core";
import { red } from "@material-ui/core/colors";
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
wrapper: {
height: "80vh",
height: "67vh",
overflow: "auto",
},
box: {
@@ -18,7 +17,6 @@ const useStyles = makeStyles((theme) => ({
},
paper: {
width: "100%",
height: "80vh",
},
}));
+12
View File
@@ -6,6 +6,17 @@ Citizen.CreateThread(function()
Citizen.Wait(0)
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
-----
@@ -31,6 +42,7 @@ Citizen.CreateThread(function()
}
)
SetNuiFocus(true, true)
TriggerServerEvent('phone:getCredentials', source)
elseif isPhoneOpen == true then
isPhoneOpen = false
print(Config.KeyTogglePhone) --Left for testing purposes.