NotAvailable
Members-
Posts
595 -
Joined
-
Last visited
Everything posted by NotAvailable
-
Why just not use attachElements?
-
Simple, but VERY useful. Well done megaman54 EDIT: I used to copy meta.xml files from other scripts to. But not anymore!
-
REPORT COMMUNITY CENTER RESOURCES HERE
NotAvailable replied to SATAN's topic in General MTA discussion
OK, This is the real story. I was scripting a RPG Gamemode. Axel added me as a contact @Skype. He offered me help, but i saw that he wasn't experienced enough so i removed him from staff. the GuiText wasn't compiled at all when the server was in developement. Axel opened his download cache and edited my GuiText. That's the true story. But the sad thing is that he didn't had enough experience to edit it on his own. That's why he asked help here @the Forums. Regards, Jesseunit EDIT: Yes, it's true. I scripted it @The_GTA's scripting server w/ Resedit. -
I would really appreciate that benox. I already tried to create them in 3ds max but it didn't work.
-
I strongly recommended that you watch some YouTube tutorials first.
-
Hello everybody. It's a pity that The_Kid left, But that doesn't mean this gamemode is dead. Now the good news is that I'm gonna continue with this gamemode. Video: https://www.youtube.com/watch?v=gFHHoirPAyU (Testing pickaxe) * If you want to help me PM me. * I'm looking for modellers & scripters * Skype: jesse.thillart * MSN: [email protected] Regards, Jesseunit
-
[WIP]JHotwire - For the criminals out there!
NotAvailable replied to NotAvailable's topic in Resources
Hell yeah, good idea! -
[WIP]JHotwire - For the criminals out there!
NotAvailable replied to NotAvailable's topic in Resources
Why do I see a lot of posts, like 'right', 'exactly', 'as **** posted'. What's the point of those posts? So people know that you still read it instead of just ignoring them. But that's only my opinion -
[WIP]JHotwire - For the criminals out there!
NotAvailable replied to NotAvailable's topic in Resources
lol -
Lol, i made this tutorial on how to change your save destination to MTA 1.1, not on how to update it. I'll create it later.
-
Hehe, it does ^^
-
Hello, i've created this topic for all MTA Users that have problems with 50p's unofficial MTA scripts editor. TUTORIAL #1 | Locate resources folder 1. Open up the folder where you installed the scripts editor. 2. Open settings.conf 3. Change MTAServerPath= to the location where your MTA is installed. Example: MTAServerPath=C:\Program Files (x86)\MTA San Andreas\server Picture: Regards, Jesseunit Problem with something else? PM me and i'll update this topic.
-
--Made by Jesseunit --skin, name, x, y, z, rotationZ peds = { {115, "John", 0, 0, 3, 180} } for i = 1, #peds do ped = createPed(peds[i][1], peds[i][3], peds[i][4], peds[i][5]) setElementRotation(ped, 0, 0, peds[i][6]) setElementData(ped, "name", peds[i][2], true) end Then, when the player clicks on it, get his elementData and trigger the event by using triggerEvent/triggerServerEvent/triggerClientEvent. -- Made by Jesseunit function clickPed(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if (clickedElement) and (getElementType(clickedElement) == "ped" ) then local x, y, z = getElementPosition(getLocalPlayer()) local wx, wy, wz = getElementPosition(clickedElement) local jij = getLocalPlayer() if (getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3) and (button == "right") and (state == "down" ) then local ped = getElementData(clickedElement, "name") if (ped=="John") then triggerEvent("showBarWnd", getLocalPlayer()) end end else return end end addEventHandler("onClientClick", getRootElement(), clickPed, true) Thats a part of my script. Please correct me if there is something wrong. EDIT: I'm in a good mood today, please dont ruin it by removing my tags.
-
Hi, This code sets every second the player's car color to his own color added in the table. I won't update it. I just released it so people with 0% scripting knowledge could use it. See code for more details. SERVER: --Made by Jesseunit --SYNTAX: ACCOUNT NAME, R, G, B names = { {"jesseunit", 255, 255, 0}, -- yellow {"account", 255, 200, 0}, -- orange {"js", 0, 0, 255} -- blue } function checkName() local players = getElementsByType("player") for theKey, thePlayer in ipairs(players) do thePlayerAcc = getPlayerAccount(thePlayer) auto = getPedOccupiedVehicle(thePlayer) for i = 1, #names do if auto and (getAccountName(thePlayerAcc) == names[i][1] ) then setVehicleColor(auto, names[i][2], names[i][3], names[i][4]) setVehicleHeadLightColor (auto, names[i][2], names[i][3], names[i][4]) setVehicleOverrideLights (auto, 2) end end end end setTimer(checkName, 1000, 0) Regards, Jesseunit
-
Attach 3 / 4 red Corona's to each other and make e'm move to it's destination. You could use Vik's laser resource for the aim stuff and put your scripted code in the code down here. function fireFunc() end addEventHandler("onClientPlayerWeaponFire", getRootElement(), fireFunc) EDIT: I like the russian guy, he sounds badass ^^
-
Ahh.. Thanks.
-
Yeah i figured that out to ^^ Should this work? for i=1, #skins do local skin = skins[i][3] end
-
I always use debugscript. I'll try to fix it.
-
Your not the last 1 ^^
-
Hi, i'm currently scripting a Spawn Menu. But when i click on the first location i get teleported to other location, nor do i get the same skin everytime. Script(Client): skins = { {"Ghost", "No", 285, false}, {"Juggernaut", "Yes", 311, true} } bases = { {"Helios One", "Hasbury, San Fierro", -2455.91015625, -135.7685546875, 26.113286972046}, {"Helios Two", "TEST BASE", 0, 0, 3} } jij = getLocalPlayer() function spawnFunc() if (getElementType(jij) == "player" ) then if (guiGetVisible(baseWnd)) then showCursor(false) guiSetVisible(baseWnd, false) guiSetVisible(skinWnd, false) guiSetVisible(spawnButt, false) removeEventHandler("onClientRender",root, drawFunc) else showCursor(true) baseWnd = guiCreateWindow(13,195,214,284,"Choose a base",false) guiWindowSetSizable(baseWnd,false) baseGrid = guiCreateGridList(10,24,194,251,false,baseWnd) guiGridListSetSelectionMode(baseGrid,2) guiGridListAddColumn(baseGrid,"Base",0.5) guiGridListAddColumn(baseGrid,"Location",0.7) guiGridListAddColumn(baseGrid,"X",0.7) guiGridListAddColumn(baseGrid,"Y",0.7) guiGridListAddColumn(baseGrid,"Z",0.7) skinWnd = guiCreateWindow(802,190,214,284,"Choose a skin",false) guiWindowSetSizable(skinWnd,false) skinGrid = guiCreateGridList(9,26,196,249,false,skinWnd) guiGridListSetSelectionMode(skinGrid,2) guiGridListAddColumn(skinGrid,"Skin",0.6) guiGridListAddColumn(skinGrid,"VIP",0.4) spawnButt = guiCreateButton(363,602,311,51,"",false) guiSetAlpha(spawnButt,0.30000001192093) triggerEvent("fillBaseGridlist", getLocalPlayer()) triggerEvent("fillSkinGridlist", getLocalPlayer()) addEventHandler("onClientGUIClick", spawnButt, spawnHim, false) addEventHandler("onClientRender",root, drawFunc) end end end bindKey("=", "Down", spawnFunc) function spawnHim (button, state, absoluteX, absoluteYe) if (source == spawnButt) and (guiGridListGetSelectedItem (baseGrid)) and (guiGridListGetSelectedItem (skinGrid)) then showCursor(false) guiSetVisible(baseWnd, false) guiSetVisible(skinWnd, false) guiSetVisible(spawnButt, false) removeEventHandler("onClientRender",root, drawFunc) local baseName = guiGridListGetItemText (baseGrid, guiGridListGetSelectedItem (baseGrid), 1) local skinName = guiGridListGetItemText (skinGrid, guiGridListGetSelectedItem (skinGrid), 1) for i,v in ipairs (bases) do baseX = guiGridListGetItemText (baseGrid, guiGridListGetSelectedItem (baseGrid), v[1]) baseY = guiGridListGetItemText (baseGrid, guiGridListGetSelectedItem (baseGrid), v[2]) baseZ = guiGridListGetItemText (baseGrid, guiGridListGetSelectedItem (baseGrid), v[3]) end for i,v in ipairs (skins) do skin = guiGridListGetItemText (baseGrid, guiGridListGetSelectedItem (baseGrid), 1) end triggerServerEvent ("spawnServer", getLocalPlayer(), baseName, skinName, baseX, baseY, baseZ, skin) else outputChatBox("* ERROR", 255, 0, 0, false) return end end function baseGridlistFunc() for i,v in ipairs (bases) do local row = guiGridListAddRow ( baseGrid ) guiGridListSetItemText ( baseGrid, row, 1, v[1], false, false ) guiGridListSetItemText ( baseGrid, row, 2, v[2], false, false ) guiGridListSetItemText ( baseGrid, row, 3, v[3], false, false ) guiGridListSetItemText ( baseGrid, row, 4, v[4], false, false ) guiGridListSetItemText ( baseGrid, row, 5, v[5], false, false ) end end addEvent("fillBaseGridlist", true) addEventHandler("fillBaseGridlist", getLocalPlayer(), baseGridlistFunc) function skinGridlistFunc() for i,v in ipairs (skins) do local row = guiGridListAddRow ( skinGrid ) guiGridListSetItemText ( skinGrid, row, 1, v[1], false, false ) guiGridListSetItemText ( skinGrid, row, 2, v[2], false, false ) end end addEvent("fillSkinGridlist", true) addEventHandler("fillSkinGridlist", getLocalPlayer(), skinGridlistFunc) function drawFunc() dxDrawRectangle(367.0,606.0,302.0,43.0,tocolor(0,0,0,140),false) dxDrawText("SPAWN",456.0,611.0,585.0,644.0,tocolor(255,200,0,255),1.0,"bankgothic","left","top",false,false,false) end Script(Server): function spawnGuy(baseName, skinName, baseX, baseY, baseZ, skin) local survivorTeam = getTeamFromName("Survivors") spawnPlayer(source, baseX, baseY, baseZ, 0, skin, 0, 0, survivorTeam) outputChatBox("* You spawned at base: "..baseName.."!", source, 0, 255, 0, false) outputChatBox("* You spawned as (a): "..skinName.."!", source, 0, 255, 0, false) end addEvent("spawnServer", true) addEventHandler("spawnServer", getRootElement(), spawnGuy)
-
i dont wanna lett it back i wanna all the map be invisible no time to end and it is work but i wanna the armor i make all is good health and invisible is great but i wanna the armor where i find it and superbullit give me the code pleez I'll help you a bit. But i'm not helping you with all your shit. I'll create a little test example if you want. Tell me what you need.
