- 
                Posts63
- 
                Joined
- 
                Last visited
Everything posted by NoviceWithManyProblems
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  Wgrywanie bazy danychNoviceWithManyProblems replied to sharkeen's topic in Pomoc ze skryptami i programowaniem w Lua tak, da się użyj https://www.apachefriends.org/pl/index.html pobierz XAMPP dla windows to takie coś co tworzy ci lokalny serwer mysql, uruchamiasz MySQL przyciskiem start, klikasz Admin i przekierowywuje cię na stronę bazy jakbyś korzystał z hostingu. a następnie połącz się używając jakiegoś skryptu, lub sam go napisz korzystając z wiki https://wiki.multitheftauto.com/wiki/DbConnect host: localhost (ew. 127.0.0.1) login: root hasło: domyślnie puste noi nazwa bazy danych taka jaka sobie utworzysz w phpMyAdmin
- 
	ok
- 
	local colShape = createColSphere(0, 0, 5, 5) addEventHandler("onColShapeHit", colShape, function(he, md) if getElementType(he) == "player" then -- what will be displayed else cancelEvent() end end) to view colShape "grid" or make it use resource https://community.multitheftauto.com/index.php?p=resources&s=details&id=3804 commands: /editcol /showcol (I think so, I don't know this by heart)
- 
	How can I cancel the camera matrix and return the camera to the default position in client side?
- 
	is now being sent, but the error is still showing up and I want it to be without error in db3
- 
	s.Lua: triggerClientEvent(root, "trig1", root, var1) c.Lua: outputChatBox("Test") -- good addEvent("trig1", true) addEventHandler("trig1", root, function() outputChatBox("trig111") end) meta.xml: <meta> <script src="s.Lua" type="server"/> <script src="c.Lua" type="client"/> </meta>
- 
	table = --[[...]]("SELECT * FROM table") for i, v in pairs(table) do marker = createMarker(...) setElementData(marker, "unique_id", v.id) end Element data to all marker it's always last I want his id to be displayed after entering the marker, but always the highest record is displayed, e.g. 5 yes, id from database is correct
- 
	local var1 = "Bobby_Bob" --.. local var1.1 = "Bobby" local var1.2 = "Bob" It's possible to do?
- 
	it's posibble to delete this gliched tram from Liberty City by CodyJL (https://github.com/CodyJL/JLiberty-City)? I wanted to ask him but he was last seen almost twenty days ago
- 
	Yes, https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnMarkerHit https://wiki.multitheftauto.com/wiki/SetVehicleHandling or you can edit https://community.multitheftauto.com/index.php?p=resources&s=details&id=3716 and instead of bindKey B move to the marker sample code to replace all createMarker in any image Or check this is similar https://www26.zippyshare.com/v/4tnjYDCh/file.html
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  I'm looking for cool new citiesNoviceWithManyProblems replied to NoviceWithManyProblems's topic in Support can you advise me something?
- 
	Hi! I saw the vice city, map from gta iii but it does not suit me, I am looking for some well optimized map, please suggestion!
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  How can I sync attached play3DSound?NoviceWithManyProblems replied to NoviceWithManyProblems's topic in Scripting yes, music start play correctly but only person who start this can hear music. All works good, no problems in DB3 - music play correctly but I one person who can hear this music I want everyone to hear her
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  How can I sync attached play3DSound?NoviceWithManyProblems replied to NoviceWithManyProblems's topic in Scripting @IIYAMA do you need more informations? please help to me.
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  How can I sync attached play3DSound?NoviceWithManyProblems replied to NoviceWithManyProblems's topic in Scripting I did it 1: 1 as you specified, checked from another computer, the same does not work, someone play something - I can't hear, I play something - he can't hear
- 
	Code: CLIENT: triggerServerEvent("musics", root) SERVER: addEvent("musics", true) addEventHandler("musics", root, function() triggerClientEvent("music", root) end) CLIENT: (...) addEvent("music", true) addEventHandler("music", root, function() local url = guiGetText(edit) sound = playSound3D(tostring(url), x, y, z, true) setSoundMaxDistance(sound, 100) exports.bone_attach:attachElementToBone(sound, player, 11, 0, 0, 0.4, 180) (...) after calling this code, play3DSound can be heard only by the person who called it. Please help to me.
- 
	.thumb.gif.886d0d2370b9a61f7a310d6e63ff359e.gif)  Expected element at argument 1.NoviceWithManyProblems replied to NoviceWithManyProblems's topic in Scripting does not work, the object does not create at all, no errors in db3
- 
	I wanted to do something like this: and i have db3 error: (nice cut) code: addCommandHandler("test", function(plr, cmd) local x, y, z = getElementPosition(plr) obj = createObject(1234, x, y, z) addEvent("trigger", true) addEventHandler("trigger", root, function() destroyElement(obj) end) end)
- 
	how is difference between cancelEvent() and return?
- 
	I maked something like this: addEventHandler("onColShapeHit", bank_col, function(he, md) if he == player then outputChatBox("good") else cancelEvent() end end) but this doesn't work. I solved it myself Working code: addEventHandler("onColShapeHit", bank_col, function(he, md) if getElementType(he) == "ped" then cancelEvent() else outputChatBox("good") end end)
- 
	It doesn't cause any problem, I just did something like that. createBlip(v[1], v[2], v[3], 17, 1, r, g, b, a, 0, 320) Script is on server (before client) side, and still doesn't work. Blip it is being created right. Current code: local drivethru = { {2376.21, -1908.87, 13.11}, {2409.42, -1488.03, 23.56}, {789.30, -1619.01, 13.11} } function usunGui() outputChatBox("test2") end function triggerujKupno() outputChatBox("test") end local index = 1; local m_dthru = {}; for k,v in ipairs(drivethru) do m_dthru[index] = createMarker(v[1], v[2], v[3]-1, "cylinder", 4.0, 255, 255, 0, 200) createBlip(v[1], v[2], v[3], 17, 1, r, g, b, a, 0, 320) index = index + 1; end addEventHandler("onMarkerHit", root, function(hitElement, matchingDimension) if (source == m_dthru) then if ((getElementType(hitElement) == "vehicle") and matchingDimension) then triggerujKupno() end end end ) addEventHandler("onMarkerLeave", root, function(leaveElement, matchingDimension) if (source == m_dthru) then if ((getElementType(leaveElement) == "vehicle") and matchingDimension) then usunGui() end end end ) Result in game: https://i.imgur.com/SDJVerr.mp4

 
        