Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Fox, if you're using MTA DayZ 0.95a. Add this to "DayZ/group/group.slua" function isPlayerInGroup(player, group) if GAC[GetAccount(player)][1] == group then return true else return false end end Now your script. local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 local group = "TheGroupYouWant" addCommandHandler ( "gate", function ( ) if isPlayerInGroup ( source, group ) then if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = 0 end end end )
  2. Create an event on server side and trigger it on client side. addEvent addEventHandler triggerServerEvent
  3. Create an event on server side and trigger it on client side. addEvent addEventHandler triggerServerEvent
  4. Why don't you make a vehicles.xml and make a script which controls all that part? Because what you're doing it's add info to the map but the map doesn't reload when you modify it making you to restart the resource. What's the best choice? A mySQL database. But if you wanna make it easier just use a .xml.
  5. Why don't you make a vehicles.xml and make a script which controls all that part? Because what you're doing it's add info to the map but the map doesn't reload when you modify it making you to restart the resource. What's the best choice? A mySQL database. But if you wanna make it easier just use a .xml.
  6. That version of GTA:SA it's pretty fucked up to mod. Anyways, could you tell me how da fuck did you put to insert Vice City into original map?
  7. That version of GTA:SA it's pretty fucked up to mod. Anyways, could you tell me how da fuck did you put to insert Vice City into original map?
  8. Go deleting piece by piece testing if the problems disappear
  9. Solved by myself. Thank you guys anyway
  10. Any idea of why this doesn't trigger?
  11. The problem is that you don't specify anywhere which vehicle is going to be modified, making the script modify only the first entry. You could make use of the vehicle id to specify which entry you want to modify.
  12. Can you make to us easier and tell us what's the problem with the script?
  13. Hello, I'm little bit angry with a triggerClientEvent which doesn't trigger. Could you guys help me? Thanks. Server-Side. addEvent("update:business", true) addEventHandler("update:business", root, function( player ) if p[ player ] and p[ player ].rbusinesses then local charID = exports.players:getCharacterID( player ) local bizs = exports.sql:query_assoc( "SELECT b.bizID, b.bizName, cb.bizRight FROM businesses b, character_to_biz cb WHERE cb.charID = '".. charID .."' AND b.bizID = cb.bizID ORDER BY b.bizName ") if bizs then triggerClientEvent(player, "business:update", player, bizs) --Doesn't Trigger end return true else return nil end end ) Client-Side. addEvent("business:update", true) addEventHandler("business:update", root, function(bizs) local update = exports.gui:updateBusiness(bizs) if update then outputDebugString("Works") end end ) Thanks again for your help.
  14. Why don't you make a .png based login? It's gonna be nicer and easier to make.
  15. I'll recommend to you to use the second method as it's fastest than the first one.
  16. LoL so you got DayZ decompiled version from Ragezone. I'll recommend to you to download the latest DayZ Open Source.
  17. You could make it shorter using tables.
  18. giveWeapon is Server-only function. Yeah and createWeapon is a client-only function. So he's going to need an event to do al this.
  19. Simple0x47

    editbox gui

    You could also disable all binds when a window gui show's up.
  20. Did you make that in the client side?
  21. Did you specify the server side script in the meta.xml? Because if you did it, that errors are because you don't create these events. Create them with this function. addEvent And to add a function to an event. addEventHandler
  22. I think you've got to modify the mta client source code to do that so there's no way. But you can make the choice to download first only the scripts with the mta sa download progress line and the mods with a custom download progress line.
×
×
  • Create New...