Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. Anyone can but sure not free.
  2. 1LoL1

    Blip problem

    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( ) ] )
  3. 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"
  4. 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 )
  5. add one end in Enter colshape.
  6. You mean stealth kill? if yes then use https://wiki.multitheftauto.com/wiki/OnPlayerStealthKill
  7. 1LoL1

    Punishment

    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>
  8. This is english only section.
  9. You can search here: https://community.multitheftauto.com/index.php?p=resources
  10. Add the resource in acl.xml <object name="resource.<resourcename>" ></object>
  11. 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>
  12. 1LoL1

    Phone System

    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()
  13. 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
  14. 1LoL1

    2x Warning

    So how i can fix?
  15. 1LoL1

    2x Warning

    I don't know what do you mean.. i only get this info when i put in line 77...
  16. 1LoL1

    2x Warning

    Sorry.. INFO: -1.#IND--1.#IND-- | -1.#IND-1.#QNAN-1.#QNAN
  17. 1LoL1

    2x Warning

    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)
  18. 1LoL1

    2x Warning

    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)
×
×
  • Create New...