Jump to content

unknooooown

Members
  • Posts

    259
  • Joined

  • Last visited

Everything posted by unknooooown

  1. unknooooown

    editing acl

    Please post the new group you have made so people can see what you have done.
  2. Exactly what are you trying to do here? When you use 'onResourceStart' the source of that event is the resource that started. So you can't triggerClientEvent for players if thats what you are trying to do. "The source of this event is the root element in the resource that started." From: https://wiki.multitheftauto.com/wiki/OnResourceStart If you want to trigger a clientEvnet for all players when the resource starts, do could do: addEventHandler("onResourceStart",root, function () for i,player in ipairs( getElementsByType( "player" ) ) do triggerClientEvent ( player, 'startTheClient', player ) end end) You should also take a look at: https://wiki.multitheftauto.com/wiki/OnC ... ourceStart
  3. Post a screen and your code. Then we can probably help you.
  4. Do you mean that YOU can't open the adminpanel when a player joins, or that THAT player can't open the adminpanel?
  5. Oh damn.. I was too slow Nvm this post.. Hehe. Example: local startTick = getTickCount() -- That will give me the current TickCount: Lets say It's: 8394573485734 -- A little later, we do pretty much the same thing again. local endTick = getTickCount() -- Lets say It's: 8394573985734 now local tick = endTick - startTick -- This would be 500000 milliseconds. Thats the time that has passed between startTick and endTick. -- If you want you can convert this to hours like: local hours = ( ( endTick / 1000 ) / 60 ) / 60 print( hours ) -- >> 0.138888889
  6. Thanks, If you want a "clean remove" - Just use destroyElement( vehicle ) destroyElement
  7. Please rephrase your question
  8. f*ck the same :( :( Could you http://www.pastebin.com - Your acl file please? Highlight XML please.
  9. Oh.. I didnt see that - I just spotted the mistake when I saw his script, so I didnt even read your posts Sorry.. Hehe.
  10. addEvent("gived",true) addEventHandler("gived",root, function() local PlayerMoney = getPlayerMoney(source) local x,y,z = getElementPosition(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) createVehicle(456,x+1,y,z ) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ffffff buy Vehicle ...", getRootElement(), 255, 0, 0, true ) else outputChatBox("dont have money", source, 255, 0, 0, true) end end ) There is no need to define 'player' in the function, as 'source' is already the player element whenever you trigger that event. I just removed 'player' from the function and replaced it with 'source' - Should work.
  11. Hi myyusuf. I made that resource you see in the video above. My YouTube account is: SeverinDK I am sorry, but I don't even have the files anymore so I could share with you. Tbh, the resource didnt work really well and after I lost a lot of files, I never got around to working on the idea again. The idea was good, but at the time, it was just too hard for me to make something as complex as the DxGui Creator.
  12. Could it really be? Could something as simple as running two different scripts at the same time, really result in something as awesome as... BPE?! y u so awzum?! Hahaha.. Enjoy
  13. It's because getPedAnimationData is a Clientside function. In your xml file you should add: type="client" Example: I am 110% sure that the problem is caused by that. Without the "type="client"", the script will run as a serverside script. it is : , otherwise it would say error on 'getLocalPlayer()' too Oh yeah, forgot the ".lua" part O_o
  14. It's because getPedAnimationData is a Clientside function. In your xml file you should add: type="client" Example: I am 110% sure that the problem is caused by that. Without the "type="client"", the script will run as a serverside script.
  15. unknooooown

    [SOLVED]

    https://wiki.multitheftauto.com/wiki/Set ... LightState https://wiki.multitheftauto.com/wiki/Set ... rideLights https://wiki.multitheftauto.com/wiki/Set ... LightColor
  16. Where do you get "showPlayer" from? The correct way is: function reportHelp(thePlayer) if (exports.global:isPlayerAdmin(thePlayer)) then outputChatBox("~-~-~-~-~-~ Report Commands ~-~-~-~-~", thePlayer, 255, 194, 14) outputChatBox("/reports - display reports", thePlayer, 255, 194, 14) outputChatBox("/ri [id] - report info", thePlayer, 255, 194, 14) outputChatBox("/tr [id] - transfer report", thePlayer, 255, 194, 14) outputChatBox("/cr [id] - close report", thePlayer, 255, 194, 14) outputChatBox("/ar [id] - accept report", thePlayer, 255, 194, 14) outputChatBox("/dr [id] - drop report", thePlayer, 255, 194, 14) outputChatBox("/fr [id] - false report", thePlayer, 255, 194, 14) end end addCommandHandler("rh", reportHelp) Notice that I replaced showPlayer with thePlayer Read here exactly how the outputChatBox function works: https://wiki.multitheftauto.com/wiki/OutputChatBox Hope I could help you
  17. Please define "spam". Does it write it multiple times or just ONCE when you leave the area/colshape?
  18. You really shouldnt work with the standard notepad. Have a look at this notepad: http://notepad-plus-plus.org/
  19. No errors in /debugscript 3 either?
  20. Don't know if you already know this, but it's a good little tip if you don't know it. There are some predefined variables in MTA. Clientside: localPlayer = getLocalPlayer() root = getRootElement() Serverside: root = getRootElement() You don't have to write those lines to make it work. root and localPlayer works just fine without being defined in your script.
  21. Just wanted to share with you guys One of my rl friends made these videos a few months ago. I really like the first two Enjoy!
  22. Thank you both Go ahead and vote if you haven't done so already Only 1 good vote away from being Top Rated
  23. That has already been added But thank you for the suggestion.
×
×
  • Create New...