-
Posts
106 -
Joined
-
Last visited
-
Days Won
2
Dziugasc last won the day on May 14 2023
Dziugasc had the most liked content!
About Dziugasc
- Birthday 22/08/2002
Details
-
Location
Compton, Lithuania
Recent Profile Visitors
3,540 profile views
Dziugasc's Achievements
Punk-@ss B*tch (12/54)
7
Reputation
-
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.
-
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
-
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
-
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)
-
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)
-
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.
-
damn, these looks nice all objects are default?
-
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
-
[ROLEPLAY] Implicit Roleplay - New topic [ENGLISH]
Dziugasc replied to Ruben 0495's topic in Servers to play on
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- 60 replies
-
- 1
-
- join our discord
- join our server
- (and 2 more)
-
Dziugasc started following -ffs-PLASMA
-
there is no Event Handler https://wiki.multitheftauto.com/wiki/OnPlayerWasted
-
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.
-
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.
-
wow, good work Thanks!