MatiMTA
-
Posts
26 -
Joined
-
Last visited
-
Days Won
1
Posts posted by MatiMTA
-
-
17 hours ago, Motar2k said:
You need use this https://wiki.multitheftauto.com/wiki/SetObjectBreakable
but is only for clientside for this use triggerClientEvent
I put this on the client side:
function setTheObjectUnbreakable(object) setObjectBreakable(object,false) end addEvent("setTheObjectUnbreakable",true) addEventHandler("setTheObjectUnbreakable",root,setTheObjectUnbreakable)
And this in the server-side:
-- I created an object like this local tOb = createObject(ob['model'], ob['x'], ob['y'], ob['z'], ob['rx'], ob['ry'], ob['rz']) -- setTimer(function() if ob['health'] > 0 then triggerClientEvent("setTheObjectUnbreakable",root,tOb) end end,1000,1,tOb)
But this doesn't work. Where is the problem?
-
Hello, I made a script wich creates an object with some properties.
The problem is when I crash my car with the object, the object breaks.
It breaks like a fence.
There is some function to make the object invincible to car crashes? I created the object in server-side.
Thanks.
-
14 minutes ago, Enargy, said:
That's weird... the code is right. Are you typing the command after you get logged in?
I have discovered that it is not (getElementData (source, "KD")). Actually it's "getElementData (player," DayZAsesinatos ") / getElementData (player," DayZMuerte ")". But try to change the (local KD) in line 2 with that information, but it did not work.
20 minutes ago, Enargy, said:That's weird... the code is right. Are you typing the command after you get logged in?
I just fixed. Thank you very much for the help. It was a problem to change "player" to "source".
-
4 minutes ago, Enargy, said:
function SetearDatas() local KD = getElementData(source, "KD") or 0 if (KD < 1) then setElementData(source, "ranking", "Bronze") --Bronce elseif (KD >= 1 and KD < 2.5) then setElementData(source, "ranking", "Silver") --Plata elseif (KD >= 2.5 and KD < 4) then setElementData(source, "ranking", "Gold") --Oro elseif (KD >= 4 and KD < 7) then setElementData(source, "ranking", "Platinum") --Platino elseif (KD >= 7 and KD < 10) then setElementData(source, "ranking", "Diamond") --Diamante elseif (KD >= 10) then setElementData(source, "ranking", "Master") --Challenger end end addEventHandler ("onPlayerLogin", getRootElement(), SetearDatas) function statsss () outputChatBox("Your rank is: ".. (getElementData (source, "ranking") or "None"), source,0,255,0) end addCommandHandler ( "statinfo", statsss )
Basically the (getElementData (source, "KD")) results in the case of my account = 0.5 And in line 3 of the code should take effect, but it does not. Why could it be?
-
In this code I try to make it possible to add new data to the user, depending on certain conditions of "getElementData (source," KD "), but it says" Attempt to concatenate a boleean value. "And the data is not a boolean, it is a I do not understand the error.. It's server side.
The data( getElementData(source, "KD") ) its a number type.
I do not want to do something difficult, I just want that when I log in I set a text in a data, where I can use it in a gui on client side.
Can you help me? Thank you
function SetearDatas() if((getElementData(source, "KD")) < 1) then setElementData(source, "ranking", "Bronze") --Bronce else if(getElementData(source, "KD") >= 1 and getElementData(source, "KD") < 2.5) then setElementData(source, "ranking", "Silver") --Plata else if(getElementData(source, "KD") >= 2.5 and getElementData(source, "KD") < 4) then setElementData(source, "ranking", "Gold") --Oro else if(getElementData(source, "KD") >= 4 and getElementData(source, "KD") < 7) then setElementData(source, "ranking", "Platinum") --Platino else if(getElementData(source, "KD") >= 7 and getElementData(source, "KD") < 10) then setElementData(source, "ranking", "Diamond") --Diamante else if(getElementData(source, "KD") >= 10) then setElementData(source, "ranking", "Master") --Challenger end end end end end end end addEventHandler ("onPlayerLogin", getRootElement(), SetearDatas) function statsss () outputChatBox("Your rank is: "..getElementData (source, "ranking"), source,0,255,0) end addCommandHandler ( "statinfo", statsss )
-
que grande con el ysy a y el neo pistea
- 1
[SELL] Gamemode H1Z1 Just Survive
in Resources
Posted
Fast and secure buy link:
https://payhip.com/b/Kk1u
- Tutorial to config everything
- Tutorial to add features
- Tutorial to add Skins/Clothes/Helmets/Emotes, etc.
- Download Image of JS
- Multilanguage(Spanish/English/BR)
- Fast and beatiful login
- Music login
- HUD inspired on JS
- Inventory bases on JS
- Fast change of weapons with 1,2,3,4
- Set visible HUD with F5
- Items translated
- Crafting System
- Cars of JS
- Season Pass
- Custom Helmets of H1Z1
- VIP System
- Builing System
- Raiding System
- Custom objects of buiding
- HUD Weapons, Life, Armor, Thirst and Hunger
- HUD Helmet and armor
- HUD Based on optimized Rust
- HUD Levels and Experience
- Epic Skins for all weapons.
- System of experience levels
- Custom inventory.
- Zombies give experience.
- VIP system
- Armor system
- Area 51 Military
- Perfect PvP without errors.
- Reward the system to level up.
- When you level up, you win new dances and skin/clothes/skin/helmets.
- VIP has better rewards than FREE
- More than 30 weapons.
- First Person
- VIP panels
- Panel of 30 Crosshairs.
- 5 different event systems.
- More than 1000 zombies distributed on the map with reappearance time.
- Personalization system to save the character.
- Start personalized session.
- Mapping in the whole city without lag and with objects without lag.
- Gamemode clean made from 0 very easy to understand.