Message
Message
if first_spawn then
if data.customization == nil then
data.customization = cfg.default_customization
end
if cfg.clear_phone_directory_on_death then
data.phone_directory = {} -- clear phone directory after death
end
if cfg.lose_aptitudes_on_death then
data.gaptitudes = {} -- clear aptitudes after death
end
-- disable handcuff
vRPclient.setHandcuffed(player,{false})
Debug.pend()
end)
-- updates
function tvRP.updatePos(x,y,z)
local user_id = vRP.getUserId(source)
if user_id ~= nil then
local data = vRP.getUserDataTable(user_id)
local tmp = vRP.getUserTmpTable(user_id)
if data ~= nil and (tmp == nil or tmp.home_stype == nil) then -- don't
save position if inside home slot
data.position = {x = tonumber(x), y = tonumber(y), z = tonumber(z)}
end
end
end
function tvRP.updateWeapons(weapons)
local user_id = vRP.getUserId(source)
if user_id ~= nil then
local data = vRP.getUserDataTable(user_id)
if data ~= nil then
data.weapons = weapons
end
end
end
function tvRP.updateCustomization(customization)
local user_id = vRP.getUserId(source)
if user_id ~= nil then
local data = vRP.getUserDataTable(user_id)
if data ~= nil then
data.customization = customization
end
end
end
function tvRP.updateHealth(health)
local user_id = vRP.getUserId(source)
if user_id ~= nil then
local data = vRP.getUserDataTable(user_id)
if data ~= nil then
data.health = health
end
end
end