
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
client-side = blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0 ] ) server-side = blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0, visibleTo = getRootElement( ) ] )
-
function HP () setElementData(source, "HP", 100) end addEvent("HP", true) addEventHandler("HP", getRootElement(), HP) setTimer(HP, 900000, 0) or addEvent("HP", true) addEventHandler("HP", getRootElement(), function () setTimer(function() setElementData(source, "HP", 100) end, 900000, 0) end) But if you want to health then use "setElementHealth"
-
local hillAreaLS = createColRectangle ( -164.82, -2912.12, 65.28, 3150, 2300 ) function hill_EnterLS (plr) if (getElementType(plr) == "player") then triggerClientEvent ( plr, "SAEGGroups:Kills", plr ) end addEventHandler ( "onColShapeHit", hillAreaLS, hill_EnterLS ) function hill_LeaveLS (plr) if (getElementType(plr) == "player") then triggerClientEvent ( plr, "SAEGGroups:KillsHide", plr ) end end addEventHandler ( "onColShapeLeave", hillAreaLS, hill_LeaveLS )
-
add one end in Enter colshape.
-
You mean stealth kill? if yes then use https://wiki.multitheftauto.com/wiki/OnPlayerStealthKill
-
1. [admin] --> admin --> server.lua --> admin_server.lua: mdata = reason~="" and ( "" .. reason .. "" ) or "" to mdata = reason~="" and ( "(" .. reason .. ")" ) or "" 2. [admin] --> admin --> conf --> messages.xml <all>$player has been muted for $data2 $data</all>
-
This is english only section.
-
You can search here: https://community.multitheftauto.com/index.php?p=resources
-
Add the resource in acl.xml <object name="resource.<resourcename>" ></object>
-
Wrong section. What do you have in meta.xml? <script src="file.lua" type="server"/> or <script src="file.lua" type="client"/> -- This is client-side ? If file.lua have in meta "client" then paste your code and use /restart <resource>
-
But by doing this for _,phone in ipairs(getElementsByType("Object")) do if (getObjectModel(phone) == 1216) or (getObjectModel(phone) == 1363) then it grabs all of the phone OBJECTS in the map, whether they are added by map, script or not added at all.. The script doesn't work yet Look what Wumbaloo said.. for _,phone in ipairs(getElementsByType("object")) do and use getElementModel() not getObjectModel()
-
Error/warning? function met (source) if hasObjectPermissionTo(source, "function.kickPlayer") then triggerClientEvent(source, "szvzas", getRootElement()) end end addCommandHandler("k",met) function valaszok (source) --if hasObjectPermissionTo(source, "function.kickPlayer") then triggerClientEvent(source, "valaszok", getRootElement()) end --end
-
I don't know what do you mean.. i only get this info when i put in line 77...
-
Sorry.. INFO: -1.#IND--1.#IND-- | -1.#IND-1.#QNAN-1.#QNAN
-
setElementPosition(element,objx,objy,objz) setElementRotation(element,offrx,offry,offrz,"ZXY") if ( not tonumber ( tostring ( objx ) ) or not tonumber ( tostring ( objy ) ) or not tonumber ( tostring ( objz ) ) ) then return end if ( not tonumber ( tostring ( offrx ) ) or not tonumber ( tostring ( offry ) ) or not tonumber ( tostring(offrz ) ) ) then return end outputDebugString ( tostring (objx).."-"..tostring(objy).."-"..tostring(objz).." | "..tostring(offrx).."-"..tostring(offry).."-"..tostring(offrz) ) else setElementPosition(element,getElementPosition(ped)) end end end addEventHandler("onClientPreRender", getRootElement(), putAttachedElementsOnBones)
-
When i use skin ID 0 then i get warnings.. When i use others skins i get green INFO: objx, ojby, objz, offrx, offry, offrz (numbers)