Jump to content

Dziugasc

Members
  • Posts

    106
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Dziugasc

  1. I been using Gizmopack for over year and it really does great job, however there is problem with textures and UV maps for diffrent walls, for example if I use biggest wall and want smaller wall, smaller one has bigger UV map so textures mismatch.
  2. Welcome, Thanks for deciding to read my post, first time I have ever tried MTA was in 2009. Skipping forward few years, I started trying out Map Editor and at first it was quite difficult task, but I had idea to make my own city theme map. It's been six years since my first map and I currently have four fully finished (stunt) map projects: Unbeatable Citiezens, Mountainview of Paradise, Gamble city and Mountainview of Paradise II. My present projects such as Las Venturas Expansion for and Beatable Citiezens II are roughly finished. Images: Aerial view of 2 of maps What am I searching for? Helping hand in current project Beatable II; City Theme mapper; Decorate maps with traffic lights, food stalls, markets, nature and etc. Mapper to work together with Beatable II - City theme based map adapted to stuntage gamemode Beatable II testing video map screenshots Las Venturas Expansion - Here is my latest project, main idea is to connect Countryside with Las Venturas add additional city in side of Las Venturas Las Venturas expansion everyone gladly welcome at: Gang War Project Discord
  3. It does not output in chat EDIT: It works if I add event such as onMarkerHit, so it means anEvent doesnt work 2#, It also returns outputChatBox("you have to play:"..money); money nil value
  4. Basically, I want to make a car performance tuning shop with scrollbars, and I am at point where gui shows getOriginal Something like this, and when player clicks buy, it would close window and take away money and finally setVehicleHandling with my written formula. Also, I would want to save handlings to database, but for now I try with elementData. And my script fails where I want to transfer vMax or accelaration value from client to server (vehicle speed is defined as 240+232=472 as a number, but as a string in GUI) I think all problems is in ElementData place, and doesn't save speed value to elementData, I have pretty much 0experience in ElementData. Now I am trying: Client function clickHandling( ) if (source == button3) then guiSetVisible (window1, not guiGetVisible ( window1 ) ) showCursor(false) setElementFrozen ( theVehicle, false ) local vMax = tonumber(getVehicleOriginalProperty( theVehicle, "maxVelocity" )+math.round(guiScrollBarGetScrollPosition( scrollbar1 )*tonumber(getVehicleOriginalProperty( theVehicle, "maxVelocity" ))/207*2 )) local money = tonumber(guiGetText(label13)) -- triggerServerEvent('anEvent',localPlayer) -- triggerServerEvent('anEvent',localPlayer,vMax) end end addEventHandler ( "onClientGUIClick", resourceRoot, clickHandling) addEvent("getPrice",true) addEventHandler("getPrice", resourceRoot, clickHandling) Server function getSelectedHandling(thePlayer) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if getElementType(thePlayer) ~= "player" then return end if theVehicle then triggerClientEvent ( thePlayer , "onClientGUIClick" , theVehicle ) outputChatBox("you have to pay:"..money) else outputChatBox ( "You do not have a Vehicle!", thePlayer, 255, 0, 0, true ) end end addEvent("anEvent", true) addEventHandler ( "anEvent", resourceRoot, getSelectedHandling) I am pretty confused right now. serverside seems not to be working
  5. Hello, Basically today I wanted to finish my car performance tuning system, and I have few problems. When I start resource, it searches for vehicle that player is occupied and only runs once, so basically if player left/wasn't in car performance tuning wont work, or if vehicles were changed it will say oldCar Perfomance Tuning and will show oldCar getVehicleOriginalProperty, not new one that player is in. I tried many ways, but couldn't get working transfer of tonumber(guiText) from client to server. CLIENT local theVehicle = getPedOccupiedVehicle(localPlayer) window1 = guiCreateWindow(475, 225, 416, 309, getVehicleName( theVehicle ).." VAŽIOKLĖS TUNINGAS", false) --.................................................. addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if (source == button3) then guiSetVisible (window1, not guiGetVisible ( window1 ) ) showCursor(false) local label = tonumber(getVehicleOriginalProperty( theVehicle, "maxVelocity" )+math.round(guiScrollBarGetScrollPosition( scrollbar1 )*tonumber(getVehicleOriginalProperty( theVehicle, "maxVelocity" ))/207*2 )) local money = tonumber(guiGetText(moneyLabel)) if getElementType(localPlayer) ~= "player" then return end if getPlayerMoney(localPlayer) >= money then takePlayerMoney ( money ) setElementFrozen ( theVehicle, false ) setElementData ( theVehicle, "maxVelocity", label) else outputChatBox("[error] No money") setElementFrozen ( theVehicle, false ) end end end ) SERVER I tried using getElementData, but it doesnt work function getHandling(theVehicle) local data = getElementData( theVehicle, "maxVelocity" ) outputChatBox( tostring(data) ) end addCommandHandler("get",getHandling) function setHandling(theVehicle) --setVehicleHandling ( theVehicle, "maxVelocity", label) outputChatBox(tostring(data)) end addCommandHandler("set",setHandling) I am trying to solve this whole morning, in future if I can I want to make this work with database to save vehicle handling to players account(garage)
  6. Hello, I am dealing with this problem for 5+ hours, basically it works without team 100%, but with teams only 1st line in table teams works, if for example if I remove Truckers, only Police works and so on. local teams = { --{"team",x,y,z,rotation,skinid, weapon1, weapon2, weapon3} {"Truckers",-2057.91650, -236.21437, 35.32031,0,206,22,25,5}, {"Police",-1636.95337, 691.31042, 7.16481,0,280,22,25,3}, {"Mafia",-2306.69556, 277.60596, 35.36875,0,126,30,28,24} } local guestSpawns = { --{x,y,z,rotation,skinid} {-1794.5,1212.2,32.7,0}, {-2519.6001, 1216, 37.4, 0}, {-1645, 1202.4, 32.9, 0}, {-1592.9, 1271.6, 7.2, 0}, {-1481.1, 686, 1.3, 0}, {-1747.5, 210.89999, 3.6, 0}, {-2031.1, -52.7, 35.4, 0}, {-2678.2, -280.10001, 7.2, 0}, {-2582.7, 319.5, 5.2, 0}, {-2749.3994, -48.90039, 6.8, 0}, {-2443.1001, 752, 35.2, 0}, {-2154.1001, -421.70001, 35.3, 0}, {-2238.8999, 112.5, 35.3, 0}, {-2197.3999, 288.39999, 35.3, 0} } function getRandomSpawnpoint() randomNum = math.random(#guestSpawns) return randomNum end function spawnOnWasted() cancelEvent() fadeCamera(source, true) local num = getRandomSpawnpoint() local ammo = 1000 local playerTeam = getPlayerTeam(source) -- source is the player who died onPlayerWasted local teamName = getTeamName(playerTeam) -- we get the team name for _, v in pairs(teams) do if teamName == v[1] then local thePlayer = source return setTimer(function() -- we return this spawnPlayer(thePlayer ,v[2],v[3],v[4],v[5],v[6],0,0,playerTeam) giveWeapon(thePlayer , v[7],ammo,false) giveWeapon(thePlayer , v[8],ammo,false) giveWeapon(thePlayer , v[9],ammo,false) end,2000,1) -- if it doesn't match (the player has no team or not specified team inside team table else for i,source in ipairs(getElementsByType("player")) do return setTimer(function() spawnPlayer(source,guestSpawns[num][1],guestSpawns[num][2],guestSpawns[num][3],guestSpawns[num][4],guestSpawns[num][5],0,0,playerTeam) -- giveWeapon(source, weapon,ammo,false) end,2000,1) end end end -- if player is in team but doesnt have spawnpoint use general spawnpoint end addEventHandler("onPlayerWasted", root,spawnOnWasted)
  7. Hello, I want to make camera animation when player dies, he respawns and camera starts above him. I tried using this code: function deathcinema() local x1,y1,z1 = getElementPosition( LocalPlayer ) local smoothMoveCamera ( x1, y1+10, z1, x1, y1, z1, x1, y1, z1, x1+5, x1, z1, 20000 ) end addCommandHandler("test", deathcinema) but nothing happens if I type command "test", and then when I use addEventHandler with OnPlayerWasted and it acts same.
  8. damn, these looks nice all objects are default?
  9. Hello, so I got this Playtime script and problem is that it counts time only for 1player and I cant find any solution to it Server.lua
  10. I agree with people who say this is garbage, I played a bit and most of scripts are just made by OwlGaming, I dont quite see any originality in scripts. But worst part that noone is friendly in server
  11. there is no Event Handler https://wiki.multitheftauto.com/wiki/OnPlayerWasted
  12. If Accounts are in SQL, that means you might not enter right admin Username, so it can't give administrator permissions on login, try going to ACL.xml in Server and search for Admin group and see what accounts are in admins group.
  13. Hello, Today I started making my own turf (colshape) system for gangs to capture. But, I really confused in few things: I want make turf system with requiredMembers to Capture, for example bigger turf more player it needs. Also every player would have a timer, which it was in turf and if he dies or leaves the turf it decreases time from total capturing time, for example time is 4:31 and 1player leaves turf and it increases time to 5:01 and then he rushes back to turf and then it decreases time by 30seconds (time it was in turf) No Military vehicles like Hydra, SS, Rhino or Hunter can shoot in capturing zone until it finishes. It would notify enemy gang if it's turf is being capturing and would display timer on top, Other gangs couldn't kill neither Attacker or Defender because it would be Teaming with another gang which is not fair. Attack Defend There would be 5types of Turfs Huge - it would require 5people to capture turf and hourly payment for every would be 100k to Gang Bank. ( 8 minutes) Big - 4 People and it would give 70k hourly ( 6:30 minutes) Normal - 3 People 40k (5 minutes) Little - 2 People and 25k (3 Minutes) Base - It would require 3players and it would be where gang could buy stuff from Gang Bank (6Minutes) I had never made turf system, so I dont know what things to use, and need your help.
  14. It looks really great.
  15. Hello, I spent few hours trying to fix my code, but it didn't work for me CODE: (client) local skins = {7,124,69} addEvent( "PlayerCharacterSelection", true) local spawnPed = createPed ( 7, -1969.93103, 158.23845, 27.68750 , 180 ) local PedDimension = setElementDimension(spawnPed,2) setPedAnimation(spawnPed, "DANCING", "dnce_M_c") function setCameraOnClothes() setCameraMatrix( -1969.69775, 155.04910, 26.78750, -1970.17273, 162.80780, 29.77750) end addCommandHandler( "PlayerCharacterSelection", setCameraOnClothes) function pedRotateE ( ) local rotX, rotY, rotZ = getElementRotation(spawnPed) setElementRotation(spawnPed,0,0,rotZ+10,"default",true) end addCommandHandler ( "e", pedRotateE ) function pedRotateQ ( ) local rotX, rotY, rotZ = getElementRotation(spawnPed) setElementRotation(spawnPed,0,0,rotZ-10,"default",true) end addCommandHandler ( "q", pedRotateQ ) function bindTheKeys () bindKey ( "mouse_wheel_down", "down", pedRotateQ ) bindKey ( "mouse_wheel_up", "down", pedRotateE ) end addEventHandler ( "onClientResourceStart", root , bindTheKeys ) function getSelectedSkin( ) local selectedSkin = skinTable[skins] return selectedSkin end function setPedSkin2() local selectedSkin = GetSelectedSkin setElementModel(spawnPed,selectedSkin) end function changeSkin() skins = skinTable totalSkins = #skinTable selectedSkin = 7 setPedSkin2() end function selectNextSkin() if selectedSkin == totalSkins then selectedSkin = 7 else selectedSkin = selectedSkin+1 setPedSkin2() end end addCommandHandler("next", selectNextSkin) function selectPrevSkin() if selectedSkin == totalSkins then selectedSkin = 7 else selectedSkin = selectedSkin-1 setPedSkin2() end end addCommandHandler("prev", selectPrevSkin)
  16. So, basically I downloaded Drift Paradise project from github, and noticed some missing stuff, and I tried fixing it for a while but couldn't do anything. Problem is that I can't apply vinyls,decals on cars, many people told I need to unwrap UV but I don't know how to properly do it and tutorials don't really help in this case. any help would be appreciated.
  17. I noticed that few information links in User Interface says Owlgaming.com like this one:
  18. I just reinstalled MTA and fixed I had to delete 30gb of client files maybe it was to much so it couldnt load it
  19. Thanks for replying again! function Language.set(lang) if not lang then return false end if not Locales.isValid(lang) then return false end if currentLanguage then Locales.unload(currentLanguage) end Locales.load(lang) currentLanguage = lang triggerEvent("dpLang.languageChanged", root, currentLanguage) return true end Problem is with me not script because for others it downloads it but for me it just doesnt download .json I really don't know how fix I tried deleting client files but nothing
  20. So hello few days ago language script started not loading languages JSON linter says it's fine but people said that it can't be loaded in Lua. I tried iprint and it says empty brackets or BAD JSON as shown somewhere in code If anyone could help It would make my day CODE:
  21. Hello, Firstly I would like to Introduce myself. I am Džiugas sixteen years old from Lithuania,Kaunas I am (trying) to make Gang War game mode from scratch. I started making it ~2017-07 main reason for making it was that in MTA:SA most of Gang War game modes is just few turfs without timers too be honest non-sense. But once there was Imperial Network Gang War but still it was not perfect. Now what I can say is: That in whole time when I play MTA:SA I been on 2good Gang War servers but sadly both died (one not entirely but has ~2players at middle at day) Now I will talk what I am looking for: 1. Gang script w/ management Gang Creation is done but still needs some fixes for example make it priced, player would need ~10hours playtime in past month too create gang or join, also if player has already in gang he couldn't even access creation and it could be created only in interior that no one would sabotage creation. Gang Ranks & Members Ranks: Name - Description (Player Count) Time Requirement [Explanation] *Rules Bauss - Automaticly given rank by creating gang has all permisions (Only 1player) Vice-President - given by Bauss, can use all commands but not /gang delete and (they) cant kick Bauss from gang (MAX 2player) *has to be >Trial Veteran - Auto-Rank after player been at gang for 1month Trusted - Auto-Rank after player been at gang for 1week Newbie - Auto-Rank after player been at gang for 1day Trial - lowest rank vanishes after player spends 6hours in gang only thing it can't is Capture zones [Protection for hopping through gangs] Members Max Players count ~20-30 (Depending on Server player count) Members could use Gang Vehicles *Only if Gang has base if Gang Car would Explode not in Base it would get -1HP Every Vehicle would get 1000HP after purchase for unlimited time until it has HP (Max Land Vehicle count in Base 15 and MAX 5 Mavericks 20 in Total. ( see 2.1) Spawn Guns Members could also use Spawn Guns that Leaders would buy from Gang Bank as Vehicles it would have HP but with weapons it would be different. ( see 1.1) Members would get Spawn Guns only if they select them in Gang Base in Marker 1.1 Gang Bases There are 5 Gang Bases Across Las Venturas. Gang Base could be dominated with at least 4members (About Time I will talk later in Turf section) Leaders could access gang base management by typing /gang base ( see 2.1) Gang Members would ALWAYS re-spawn in GANG Base. 2.1 Zone Domination (Turfs) Zone/Base Domination time depends on member count each for example if player 1been in zone for 3Minutes and dies it adds +3Minutes to time but when he gets back it returns to normal Zone payment, Players required to dominate depends on the size of the zone for example Small Turfs - 2Players / 4-5Minutes / 70-85K/hour income Medium Turfs - 3-4Players / 6-8Minutes / 85K-110K/hour income Big Turfs - 5-6Players / 7-13Minutes / 110K-165K/hour income Bases - At Least 3Players / 7Minutes. Time Example Attack/Defend (Yellow) Time 2:34 (White) Gang Name (Depends on Gang Color) If Zone isn't owner by any gang there would be no GSF Thanks For reading For Further Info contact me through here /Personal Message / Discord Dziugasc#8903 https://discord.gg/87JAjBr https://github.com/Dziugasc/SABR
  22. no debugerror it just doesnt invite GUIEditor.window[2] = guiCreateWindow(0.43, 0.39, 0.15, 0.11, "INVITE", true) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible(GUIEditor.window[2],false) GUIEditor.button[10] = guiCreateButton(10, 59, 81, 18, "Invite", false, GUIEditor.window[2]) GUIEditor.button[20] = guiCreateButton(112, 59, 80, 18, "Cancel", false, GUIEditor.window[2]) GUIEditor.edit[10] = guiCreateEdit(94, 26, 98, 23, "11", false, GUIEditor.window[2]) GUIEditor.label[10] = guiCreateLabel(66, 30, 18, 14, "ID:", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") elseif (source == GUIEditor.button[10]) then local id = guiGetText(GUIEditor.edit[10]) if id ~= "" then triggerServerEvent( "onPlayerInvite", localPlayer, id) guiSetVisible (GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2] ) ) showCursor(false) end
×
×
  • Create New...