where would you put that
stupid question, how would you go about expanding that to the whole screen?
Is it possible to increase the height and width of the tablet? the bubble app iâm using doesnât really fit.
Hello, i am wondering, i created catalog of cars that are in PDM, i added it there, but it dont want to load images and stuff. I just see blank borders without images and also car callouts.
lawl making my server crashâŠ
can i ask the code you did please.
thx my dude
The plugin crashes server on start [1244]
same crashing server
Hello there! I have my Polcie radio bound to CAPS but Iâm unable to use it whilst the Tab is open. Is there a way to allow me to still use the radio whilst the Tab is open?
or @Tracid_TV can anyone of you or anyone share how one might add animation/prop for when someone access the tablet? Would really appreciate it.
Hello,
One of the way to implet the props:
Create config.lua
config = {
actions = {
create_tablette= {
name = "Carry Tablette",
currentAction = "create_tablette",
animDictionary = "amb@world_human_seat_wall_tablet@female@base",
animationName = "base",
animObjects = {
name = "prop_cs_tablet",
--- Offsets: ---
xoff = 0,
yoff = 0,
zoff = 0.03,
-- Rotations: --
xrot = 0,
yrot = 0,
zrot = 0,
},
},
},
}
Create client.lua
------------------------------------------------------------------------------------
------------------------------------ Use tablette ------------------------------------
------------------------------------------------------------------------------------
local var1 = 0
RegisterNetEvent('esx_useitem:tablette')
AddEventHandler('esx_useitem:tablette', function()
if var1 == 0 then
DoAction('create_tablette')
var1 = 1
IsWearingObject = true
MenuIsShowed = true
SetNuiFocus(true, true)
SendNUIMessage({
action = 'show'
})
else
currentAction = 'none'
DoAction('none')
IsWearingObject = false
var1 = 0
if IsControlJustPressed( 0, 322 ) then
DeleteObject(name)
MenuIsShowed = false
SetNuiFocus(false)
SendNUIMessage({
action = 'hide'
})
cb('');
end
end
end)
----------------
function DoAction(index)
Citizen.CreateThread(function()
if currentAction ~= "none" then
ClearPedSecondaryTask(GetPlayerPed(PlayerId()))
DetachEntity(NetToObj(obj_net), 1, 1)
DeleteEntity(NetToObj(obj_net))
obj_net = nil
currentAction = "none"
end
if index == "none" then
ClearPedSecondaryTask(GetPlayerPed(PlayerId()))
DetachEntity(NetToObj(obj_net), 1, 1)
DeleteEntity(NetToObj(obj_net))
obj_net = nil
currentAction = "none"
return
end
RequestModel(GetHashKey(config.actions[index].animObjects.name))
while not HasModelLoaded(GetHashKey(config.actions[index].animObjects.name)) do
Citizen.Wait(100)
end
RequestAnimDict(config.actions[index].animDictionary)
while not HasAnimDictLoaded(config.actions[index].animDictionary) do
Citizen.Wait(100)
end
local plyCoords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(PlayerId()), 0.0, 0.0, -5.0)
local objSpawned = CreateObject(GetHashKey(config.actions[index].animObjects.name), plyCoords.x, plyCoords.y, plyCoords.z, 1, 1, 1)
Citizen.Wait(1000)
local netid = ObjToNet(objSpawned)
AttachEntityToEntity(objSpawned, GetPlayerPed(PlayerId()), GetPedBoneIndex(GetPlayerPed(PlayerId()), 28422), config.actions[index].animObjects.xoff, config.actions[index].animObjects.yoff, config.actions[index].animObjects.zoff, config.actions[index].animObjects.xrot, config.actions[index].animObjects.yrot, config.actions[index].animObjects.zrot, 1, 1, 0, 1, 0, 1)
TaskPlayAnim(GetPlayerPed(PlayerId()), 1.0, -1, -1, 50, 0, 0, 0, 0) -- 50 = 32 + 16 + 2
TaskPlayAnim(GetPlayerPed(PlayerId()), config.actions[index].animDictionary, config.actions[index].animationName, 1.0, -1, -1, 50, 0, 0, 0, 0)
obj_net = netid
currentAction = index
end)
end
-- Stop animation
RegisterNetEvent('esx_useitem:stopanimation')
AddEventHandler('esx_useitem:stopanimation', function()
var1 = 0
IsWearingObject = false
holdingBag = false
currentAction = 'none'
DoAction('none')
end)
-------- réglage tablette
RegisterNUICallback('escape_pressed', function(data, cb)
MenuIsShowed = false
SetNuiFocus(false)
SendNUIMessage({
action = 'hide'
})
cb('');
end)
Create server.lua
------------------------------------
---- Utiliser Tablette ----
------------------------------------
ESX.RegisterUsableItem('tablette', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('esx_useitem:tablette', source)
--TriggerClientEvent('esx_extended:showNotification',_source,'connexion en cours', 'CHAR_ACTING_UP','MyFace')
end)
For the html file, just change the line 14 with your website on the app.html
https://we.tl/t-Pxv6lsXRhF
Does anyone know how to fix crash problems on the latest version of the server? Caused by this plugin�
I really need it to work
Good evening all
Is there something that stops CAPS being used whilst the tab is open? We use CAPS as our radio button but it refuses to work with the tab. Iâve looked at the keys that are disabled and itâs not one of them. Am I missing something glaring or it there a solution to this? Any help would be massively appreciated.
The script makes our server crashâŠ
Did you get this working?
or did someone get spotify to work?
Tabby is crashing our servers with the latest artifacts. If anyone has figured out a fix, Iâd love to hear about it!
Our linux server keeps crashing with tabby with the latest build but it runs fine on the windows server.
It was doing the same thing to mine, go to the resource.lua and change it to this:
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
Discription "Tablet"
Version "0.2"
ui_page "nui/ui.html"
files {
"nui/ui.html",
"nui/material-icons.ttf",
"nui/material-icons.css",
"nui/loadscreen.jpg",
"nui/fancy-crap.css",
"nui/fancy-crap.js",
"nui/jquery.min.js",
"nui/html/news.html",
"nui/html/fines.html",
"nui/html/hotties.html",
"nui/html/youtube.html",
"nui/html/spotify.html",
"nui/html/snake.html",
"nui/html/fuckyouitsdope.png",
"nui/html/jobsfordummies.html",
"nui/html/rulesforassholes.html",
"nui/bootstrap.min.css",
"nui/html/opencad.html"
}
client_script "client.lua"
client_script "config.lua"
That change is exactly the same one as posted above. Please let me know if they approve the merge.