-
Posts
467 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Gravestone
-
This function doesn't have a name nor does it have an 'if' statement that you're using 'else' at line 3.
-
table.sort
-
You will have to add the sound file location in the meta.xml and then play it using PlaySound with the file path. For example: <!-- Meta.xml--> <meta> <file src="fileName.mp3" /> </meta> -- lua file playSound("fileName.mp3")
-
You can take reference from this.
-
You can try if who ~= "" then This will check if the player left the second argument of the command /give empty.
-
Hello, I'm creating a DX Freeroam panel. I got into adding animations tab into it. So what I want to do is that there are like 2,000 animations in the xml list with groups, so I want to add only groups to the GUI Gridlist named like this "+"..groupName. So when the player clicks on the group name row, it shows all those animations in that specific group in the XML file and when player clicks another group name row, it hides the previous animations and shows the newly clicked group row. Here's my xml file:
-
I've been facing this problem for a while now. So actually the problem is that when I enter a vehicle, when my ped sits on the vehicle after 1 sec or less my game freezes for 2-3 seconds and then continues. How can I fix this?
-
Umm, what does this statement return? local dog = getElementData(getElementData(localPlayer, "player:dog"), "dog") Debug it manually through either outputChatBox or outputDebugString.
-
Can you paste full code?
-
Does ' rasy ' table exist?
-
In both these functions, there is no rainbowTimer defined. Also, when you're checking 'if map' then this means that you're checking if the started resource started, that's obvious, it will return true in all cases. What are you actually trying to do? If you want to kill timers attached to some vehicles, you can use it via a table instead. Something like this: timers = {} function addTimer(player, cmd) local vehicle = getPedOccupiedVehicle(player) if vehicle then local timers[vehicle] = setTimer(theFunction, ms, timesToExecute) setElementData(vehicle, "rainbowTimer", timers[vehicle]) end end addCommandHandler("commanad", addTimer) function removeTimer() local vehicle = getPedOccupiedVehicle(source) if vehicle then if getElementData(vehicle, "rainbowTimer") then setElementData(vehicle, "rainbowTimer", false) killTimer(timers[vehicle]) end end end addEventHandler("onPlayerQuit", root, removeTimer)
-
onResourceStart's first argument is the resource that started. So in this case, you're defining the resource as 'map' and then checking if the 'map' aka started resource exists. FileExists's first argument is the string representing the file you want to check if exists. Hope you understand
-
That's because that language section is not recently viewed probably.
-
No, this only happened when I installed 1.5.3. Also, there's a bug with maps, while playing at a MGM server, the objects randomly move up/down and rotate.
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
That's what I'm saying. If you make change to a client sided script and restart the resource, the cache doesn't get updated.
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
Download error: HTTP server file mismatch (admin) admin_spectator.lua [Got size:12011 MD5:369D1565EE8825A4D8178DD0B9FD278A, wanted MD5:E8E6F8298B6A5E5909C40BADFD5C84EE] This error is being shown when a client side script is updated. For example a, the admin_spectator.lua file in my previous MTA server is different than the one in this new updated admin resource. My admin panel is not working although the commands do work.
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
I changed the server port to '22004' and now the server has successfully started. Was it a bug with the new version tho?
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
Oh, my bad :p. Here's my mtaserver.conf file:
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
I just installed it and it made no difference, I see the same error.
- 64 replies
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
When I turn on MTA 1.5.3 server, it shows me this error :
- 64 replies
-
- 1
-
- awesomeness
- mtasa 1.5.3
-
(and 4 more)
Tagged with:
-
The wiki says: Note:If you attach a GUI element to this event, when you click it's parent it will trigger too!
-
Dude, use this function m4() triggerServerEvent ("m4",getLocalPlayer(),m4) end addEventHandler("onClientGUIClick", GUIEditor.button[2], m4, false)
-
Could somebody help me with a weapon selector and dx functions?
Gravestone replied to Dzsozi (h03)'s topic in Scripting
getSlotFromWeapon's first argument is the weapon ID, you have to use getWeaponIDFromName. -
It's the same as the one he wrote. It has to be like this: addEventHandler("onClientGUIClick", GUIEditor.button[1], functionname, false)