rv-props-tablet add + Loading Edit + qb-target

- rv-props: prop tableta custom cu logo-ul serverului (prop_rv_tablet)
- 17mov_JobCenter: trigger tableta custom cand playerul este la Job Center
- Loading Screen: logo 320px, texte in romana, accent rosu #cc1133, card info RV
- qb-target: punctul (eye) dublu ca size (8px→16px), hover text rosu #cc1133
- 17mov_JobCenter: GlobalColor #cc1133 (accent mai inchis)
- colors.css: tema Red Valley pe toate NUI-urile (accent, background alb transparent)
- docs: 17mov_Hud API reference complet, server knowledge update
This commit is contained in:
2026-04-01 20:23:47 +03:00
parent f2ea62d16c
commit 89070f745b
5347 changed files with 450 additions and 12423 deletions

View File

@@ -8,73 +8,6 @@ elseif GetResourceState("ox_target") ~= "missing" then
Config.TargetSystem = "qtarget" -- OX_Target have a backward compability to qtarget
end
-- Comenzi utile pentru testare animatii + props
-- testanim dict anim [propName] [boneId] [ox oy oz] [rx ry rz]
local testProp = nil
RegisterCommand("testanim", function(_, args)
if not args[1] then
print("^3[testanim]^0 Utilizare:")
print(" testanim dict anim -- doar animatie")
print(" testanim dict anim propName -- prop pe mana dreapta (bone 60309)")
print(" testanim dict anim propName boneId -- prop pe bone custom (zero offsets)")
print(" testanim dict anim propName boneId ox oy oz rx ry rz -- full control")
print("^3Exemple:^0")
print(" testanim amb@code_human_in_bus_passenger_idles@female@tablet@base base prop_cs_tablet")
print(" testanim mp_character_creation@lineup@male_a loop_raised prop_police_id_board 28422")
return
end
-- Opreste animatia/propul anterior
ClearPedTasks(PlayerPedId())
if testProp and DoesEntityExist(testProp) then DeleteEntity(testProp) testProp = nil end
local ped = PlayerPedId()
local dict = args[1]
local anim = args[2] or "base"
-- Joaca animatia
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do Wait(10) end
TaskPlayAnim(ped, dict, anim, 2.0, -2.0, -1, 49, 0, false, false, false)
-- Prop optional (arg 3+)
if args[3] then
local model = GetHashKey(args[3])
RequestModel(model)
while not HasModelLoaded(model) do Wait(10) end
local coords = GetEntityCoords(ped)
testProp = CreateObject(model, coords.x, coords.y, coords.z, true, true, true)
local bone = tonumber(args[4]) or 60309
local ox = tonumber(args[5]) or 0.0
local oy = tonumber(args[6]) or 0.0
local oz = tonumber(args[7]) or 0.0
local rx = tonumber(args[8]) or 0.0
local ry = tonumber(args[9]) or 0.0
local rz = tonumber(args[10]) or 0.0
AttachEntityToEntity(testProp, ped, GetPedBoneIndex(ped, bone),
ox, oy, oz, rx, ry, rz, true, true, false, true, 1, true)
end
end, false)
RegisterCommand("stopanim", function()
ClearPedTasks(PlayerPedId())
if testProp and DoesEntityExist(testProp) then DeleteEntity(testProp) testProp = nil end
end, false)
RegisterCommand("testbubble", function(_, args)
local text = table.concat(args, " ")
if text == "" then text = "Test bubble..." end
LocalPlayer.state:set("bubbleText", text, true)
LocalPlayer.state:set("bubbleIcon", "💬", true)
LocalPlayer.state:set("browsingJobs", true, true)
end, false)
RegisterCommand("stopbubble", function()
LocalPlayer.state:set("browsingJobs", false, true)
end, false)
-- Animatie tableta pentru meniul Job Center
local tabletProp = nil
local animDict = "amb@code_human_in_bus_passenger_idles@female@tablet@base"
@@ -93,7 +26,7 @@ Utils.PlayTabletAnim = function()
TaskPlayAnim(ped, animDict, animName, 2.0, -2.0, -1, 49, 0, false, false, false)
-- Creeaza prop tableta
local model = GetHashKey("prop_cs_tablet")
local model = GetHashKey("prop_rv_tablet")
RequestModel(model)
while not HasModelLoaded(model) do
Wait(10)
@@ -103,7 +36,8 @@ Utils.PlayTabletAnim = function()
tabletProp = CreateObject(model, coords.x, coords.y, coords.z, true, true, true)
-- Ataseaza la mana dreapta (bone 60309)
AttachEntityToEntity(tabletProp, ped, GetPedBoneIndex(ped, 60309),
0.03, 0.002, -0.0, 10.0, 160.0, 0.0, true, true, false, true, 1, true)
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true, true, false, true, 1, true)
SetModelAsNoLongerNeeded(model)
RemoveAnimDict(animDict)
@@ -115,6 +49,7 @@ Utils.StopTabletAnim = function()
-- Opreste animatia
ClearPedTasks(ped)
-- Sterge prop-ul
if tabletProp and DoesEntityExist(tabletProp) then
DeleteEntity(tabletProp)