Jump to content

SpecT

Members
  • Posts

    656
  • Joined

  • Days Won

    9

Everything posted by SpecT

  1. for i, v in ipairs(getElementsByType("object")) do local model = getElementModel(v) if model == 1234 then setObjectScale(v,2) end end
  2. Show the function that triggers "kilLDayZPlayer".
  3. SpecT

    A question

    The error doesn't tell you from which resource it comes. In my server (DM race) I get these errors really frequently from most of the new maps. Now on the topic - if the error comes from the server side file then you should search for "mapEditorScriptingExtension_c.lua" and remove it from meta.
  4. SpecT

    A question

    I know that the MTA's map editor creates such files. They are: mapEditorScriptingExtension_c.lua and mapEditorScriptingExtension_s.lua Maybe its from a map resource. I hope this helps.
  5. SpecT

    Map resources

    It creates the objects server sided (for everyone).
  6. I'm not really sure how to do that but if you want you can take a look in the Race gamemode. Good luck!
  7. SpecT

    Solved

    You are welcome!
  8. SpecT

    Solved

    local r,g,b = 0,255,130 local n1 = toHex(r) local n2 = toHex(g) local n3 = toHex(b) function toHex ( n ) local hexnums = {"0","1","2","3","4","5","6","7", "8","9","a","b","c","d","e","f"} local str,r = "",n%16 if n-r == 0 then str = hexnums[r+1] else str = toHex((n-r)/16)..hexnums[r+1] end return str end
  9. You need to bind it for everyone and when a player joins. Like this: addEventHandler("onPlayerJoin",root, function () bindKey( source, "F1", "down", changelang ) end ) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey( player, "F1", "down", changelang ) end end )
  10. Yeah, thats why I asked you. If you are using the Admin resource then you can't mute for days (if i'm not wrong). So I thought you are using SQL/MySQL/XML sysem of saving. And yeah as you have found it to unmute them you just need to set the table empty.
  11. It depends what system of saving the muted players you use.
  12. Replace if(r, g, b) then with if r and g and b then
  13. SpecT

    SAM Turrent

    This forum is for helping people in need. It is NOT to make resources for you.
  14. You can't get returned value from exported function. Put the function getPlayerFromNamePart in your code.
  15. Define the variable VapidCount so it won't give you nil until the defining function set it. window = {} label = {} local VapidCount = 0
  16. Add: removeEventHandler("onClientRender", getRootElement(), rotate) before the addEventHandler.
  17. Yeah, of course it will work! That's how the DX panels work - when you click a button => addEventHandler("onClientRender", root, function) or removeEventHandler("onClientRender", root, function)
  18. This happens because the server is calling an event that is in client side but the client haven't loaded the code yet. You should find a way to tell the server when the client is ready (loaded) and then it should trigger the client event.
  19. Hello guys, I created a topic about this function some months ago and I thought I fixed the problem but actually not. I want to sync the sound position between server and client. So after the sound is being started (client) it sets the position. BUT in most cases it doesn't set it at all. When will the setSoundPosition set the position successfully ?
  20. In the server side change the argument of the function "createTheVehicle". Replace the argument "marker" with "x,y,z".
  21. Find the function that triggers the event "crVeh" and post it here.
  22. Didn't you see the red text in the right up corner in wiki ? It is "Clientside event". Also you need to check which resource sets that data (if the player is jailed or not) and then to use it.
×
×
  • Create New...