/)ssasin
-
Posts
7 -
Joined
-
Last visited
Posts posted by /)ssasin
-
-
Hi, since I do not have time to devote to my server, I have decided to sell it
The gamemode contains everything for its correct functioning
Characteristics of the server:
-Language: Spanish - English - Portuguese
-Loot
-Vehicles
-Weapons
-Inventory with drag and click system
-New chat and notifications
-System of healing with animations
Among other things related to the original pubgImages of the gamemode:
SpoilerPrice and payment method:
The price of the gamemode is $30 usd
Methods of payment via PayPal -
12 hours ago, NeXuS™ said:
Do you want to change the ammo only?
You see you never used createWeapon.
createWeapon creates a floating weapon not for the player
What I want is for you to help me adjust the createWeapon to the player
The other property is easy, but first is to create the weapon and make it shoot
-
-
-
14 hours ago, Tomas said:
Hola Assasin, en este subforo solo se permiten posts en inglés. En español debes hacerlos aquí: https://forum.multitheftauto.com/forum/167-scripting/
Con respecto a tu pregunta, lo que puedes hacer es desde el server side asignarle a los jugadores a través de un element data el color de su gang, algo así:
addEventHandler("onPlayerLogin", root, function () r, g, b = exports.gang_system:getGangData(getElementData(source, "gang"), "color") setElementData(source, "gang_color", {r, g, b}) end ) -- y entonces, desde el cliente: r, g, b = unpack(getElementData(v, "gang_color"))
Me tira este error bad argument #1 to "unpack" (table expected, got boolean) :v
-
Hola necesito ayuda con este script . Lo que quiero hacer es que se vea el dxdrawtext en el color del gang.
Me tira este error cuando lo inicio falied to call gang_system:getGangData[string"?"]
Creo que no funciona porque el export getGangData es solo para server , no habra alguna forma de hacerlo para que funcione en el client
Pd: Es el gang_system de Castillo
Aqui el codigo
Client
SpoileraddEventHandler("onClientRender",getRootElement(),
function()
local px,py,pz,tx,ty,tz,dist
px,py,pz = getCameraMatrix()
for k,v in ipairs(getElementsByType("player")) do
if (v~=getLocalPlayer()) then
tx,ty,tz = getElementPosition(v)
dist = math.sqrt((px-tx)^2 + (py-ty)^2 + (pz-tz)^4)
if dist < 30.0 then
local sx,sy,sz = getPedBonePosition(v,5)
local x,y = getScreenFromWorldPosition(sx,sy,sz+0.3)
if x then
local gangName = getElementData ( v, "gang" )
if gangName ~= "None" or gangName ~= "" or gangName ~= nil then
local scale = 0.65+(15-dist)*0.02;
local text = "Miembro de "..gangName
local w = dxGetTextWidth( text, scale, "bankgothic" )
local r, g, b = unpack(exports.gang_system:getGangData(gangName, "color") or {255, 255, 255})
dxDrawText(text,x-w/2,y,x,y,tocolor( r, g, b,255),scale,"bankgothic")
end
end
end
end
end
end
)
[SELL] Gamemode Pubg
in Resources
Posted
Talk to me on Skype if you want to try