
myonlake
Members-
Posts
2,312 -
Joined
-
Days Won
41
Everything posted by myonlake
-
Close all programs that use Apache's port - so close Chrome and all unnecessary programs and restart xampp and try again.
-
I think using MTA forums to ask this simple question is a little weird. Use Google search and you'll find the ways to do this. It is possible but it won't be successful for you since decompilers are not supporting all functions so... it will be a waste of time mostly.
-
And secondly you can just cancel the event and make your own animation there somehow But yeah, forget me since I am doing it the hard way. Xeno, I didn't remember that one either
-
I know this sounds a little weird, but are you able to add some kind of data on the message to mark it as a longer message, and if it's a longer message, the next message will be sent one line lower? I know, it sounds pretty lame and unofficial fix but yeah.
-
Yes, go to your MTA settings and set the "Draw Distance" larger.
-
Just start xampp, start Apache and MySQL then go to http://localhost/ edit your permissions and go to phpMyAdmin after you've deleted everything from htdocs folder. phpMyAdmin and add a database, then go to your gamemode, which probably is Paradise or Valhalla, go to the sql folder and edit the files so that username, password and database are set to your settings.
-
What are you trying to do, teteomar.
-
You had a lot of wrong arguments and unnecessary checks there. I also minimized a few things and corrected a client/server mixup. Client-side local marker = createMarker(94.800003051758, 1925.1999511719, 17, "Cylinder", 2, 40, 73, 0, 200) addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} windowjob = guiCreateWindow(531, 232, 301, 397, "Armed Forces", false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22, 352, 108, 35, "Take job", false, windowjob) GUIEditor_Label[1] = guiCreateLabel(193, -103, 5, 5, "", false, windowjob) GUIEditor_Button[2] = guiCreateButton(179, 352, 110, 36, "Cancel", false, windowjob) GUIEditor_Memo[1] = guiCreateMemo(19, 33, 273, 215, "Welcome To Armed Forces\n\nTo take Armed Forces job, press Take job.\n\nIf you don't want to, press Cancel.", false, windowjob) end ) addEventHandler("onClientMarkerHit", marker, function(hitElement, matchingDimension) if getElementType(leaveElement) == "player" then if matchingDimension then if getElementData(hitElement, "Occupation") and getElementData(hitElement, "Occupation") == "Armed Forces" then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end end end ) addEventHandler("onClientMarkerLeave", marker, function(leaveElement, matchingDimension) if getElementType(leaveElement) == "player" then if matchingDimension then if getElementData(leaveElement, "Occupation") and getElementData(leaveElement, "Occupation") == "Armed Forces" then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end end end ) addEventHandler("onClientGUIClick", GUIEditor_Button[1], function() triggerServerEvent("setAF", localPlayer) guiSetVisible(windowjob, false) showCursor(false) end, false ) addEventHandler("onClientGUIClick", GUIEditor_Button[2], function() guiSetVisible(windowjob, false) showCursor(false) end, false ) Server-side addEventHandler("onResourceStart", resourceRoot, function() teamAF = createTeam("Armed Forces", 40, 73, 0) setTeamFriendlyFire(teamAF, false) for i,v in ipairs(getElementsByType("player")) do if isGuestAccount(getPlayerAccount(v)) then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Armed Forces")) then setElementData(v, "Occupation", "Armed Forces", true) end end end ) addEvent("setAF", true) addEventHandler("setAF", root, function() setPlayerTeam(source, teamAF) setBlipColor(source, 40, 73, 0, 255) setElementModel(source, 287) setPlayerNametagColor(source, 40, 73, 0) giveWeapon(source, 3, 1) setElementData(source, "Occupation", "Armed Forces", true) outputChatBox("You have been employed as Armed Forces.", source, 0, 255, 0, false) end )
-
Join Flood means too many people are attempting to connect at the same time.
-
It's really simple - just do as what Solidsnake told you and that's it. Same like: if old_password == new_password then
-
You should at least try it yourself first with the GUI scripting tutorial and then come to us with some kind of code.
-
addEventHandler("playTheSound2", root, function() for i,v in ipairs(getElementsByType("sound")) do setSoundVolume(v, 0.0) end song = playSound("music/party.mp3", false) setSoundVolume(song, 1.0) end )
-
Edited my code. @Jaysds1: I suppose you didn't pay attention to the 'jacked' part there, since in my opinion, it makes no sense if the admin entering the car can only set the vehicle invincible if he doesn't jack it from a player. So you can just take off the part where the 'jacked' is mentioned.
-
I don't see how hard it is to make this script work from you guys. It's a simple script guys. local hydra = createVehicle(model, x, y, z) addEventHandler("onVehicleEnter", root, function(player, seat, jacked) if isGuestAccount(getPlayerAccount(player)) then return end if seat == 0 then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then setVehicleDamageProof(hydra, true) setVehicleDoorsUndamageable(hydra, true) else setVehicleDamageProof(hydra, false) setVehicleDoorsUndamageable(hydra, false) end end end ) Don't understand anything from this script? I suggest to learn lua first. Scripting Introduction to MTA:SA
-
setElementPosition setElementInterior setElementDimension addCommandHandler
-
You can anyways use triggers from server side and vice versa if your scripts won't work without this. triggerClientEvent triggerServerEvent
-
Use for loop to add it to all trams. Also, to edit handlings, use setVehicleHandling. setVehicleHandling
-
@X-SHADOW: No. @kaos057: Use onClientPlayerDamage.
-
local seconds = 60 addCommandHandler("freeroam", function(player, cmd) redirectPlayer(player, "94.23.38.142", 22006) outputChatBox("* #000000[#FF0000" .. getPlayerName(player) .. " #000000] #FFFF00Has turning to the Freeroam Server#ff0000!!", root, 255, 0, 0, true) end ) setTimer(function() outputChatBox("#FFff00~@ #00bbccType #000000[ #ff0000/freeroam #000000] #00bbccTo connect to The#000000: #ff0000Freeroam #00bbccServer #ffff00@~", root, 255, 255, 255, true) end, seconds * 1000, 0) Questions Is the script even running Is the meta.xml set up correctly with the script file in it Are you typing the command correctly as 'freeroam' Try removing some of those color codes and see if they work
-
Oh yes, I forgot that, hehe'. Try Alpha's version, he fixed the 'source' issue there.
-
Are you sure this script is running and the resource 'global' is running and you're a super admin?