-
Posts
877 -
Joined
-
Last visited
Everything posted by denny199
-
There u go (didn't added words):
-
Yeah, true. But GTA V Online is full of hackers on the xbox >.<, and even harder to say, it's easy to hack.. Just fill in a DNS server and done lal..
-
, buy a "second-hand" xbox for €100 and then gtaV for 60 euros, and voila.
-
function findPitch(camerax,cameray,cameraz,pointx,pointy,pointz) local dX=camerax-pointx local dY=cameraz-pointz local dZ=cameray-pointy local pitch=math.atan2(dY,math.sqrt(math.pow(dZ,2) + math.pow(dX,2))); return pitch end Converted from bandi's code, already sended to IIYAMA via skype, I just felt of sharing it. And I don't think that Roll is needed. Also it's returned in radians here's the code for converting it to degrees: local degree = pitchReturn*(180/math.pi) pitchReturn = the return of the function "findPitch", it was just a simple google
-
Must be a problem in the marker hit function, try this: GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() pilotWindow = guiCreateWindow(850, 570, 400, 200, "Pilot Job", false) guiWindowSetSizable(pilotWindow, false) pilotLabel = guiCreateLabel(10, 90, 380, 56, "Welcome, to start the Pilot job press accept! To leave press cancel.\n\n Your task: Fly to Las Venturas Airport!", false, pilotWindow) guiSetFont(pilotLabel, "default-bold-small") pilotAcceptButton = guiCreateButton(20, 156, 153, 34, "Accept!", false, pilotWindow) addEventHandler ( "onClientGUIClick", pilotAcceptButton, function () triggerServerEvent("onPilotAccept", localPlayer) lvMarker = createMarker(1477.40002, 1773.40002, 9.8, "cylinder", 20.0, 255, 100, 0) lvBlip = createBlip(1477.40002, 1773.40002, 10.8, 19) addEventHandler("onClientMarkerHit", lvMarker, function ( hitElement, matchingDimension) if (hitElement == localPlayer) and (matchingDimension == true) then -- I changed it here because this will do the trick on client side destroyElement(lvBlip) triggerServerEvent("onLVHit", source) -- you know that "source" is the marker right? end end ) guiSetVisible(pilotWindow, false) showCursor(false) end ) pilotCloseButton = guiCreateButton(227, 156, 153, 34, "Close", false, pilotWindow) addEventHandler ( "onClientGUIClick", pilotCloseButton, function () guiSetVisible(pilotWindow, false) showCursor(false) end ) pilotImage = guiCreateStaticImage(10, 24, 380, 56, "images/pilot.png", false, pilotWindow) guiSetVisible(pilotWindow, false) end ) addEvent("showPilotGUI", true) addEventHandler("showPilotGUI", root, function () guiSetVisible(pilotWindow, true) showCursor(true) end )
-
How did you fixed it, or what was the problem?
-
addEventHandler("onClientRender", root,function() local oxygen = math.floor(getPedOxygenLevel ( localPlayer )) --dxDrawText (tostring(oxygen), 100, 500 ) dxDrawRectangle(900, 94, 266, 20, tocolor(0, 0, 0, 255), true) dxDrawRectangle(901, 95, 264*(oxygen/1000), 18, tocolor(8, 154, 246, 255), true) end ) It works properly for me? P.S; your code isn't working for every screen resolution.
-
Do it, I have played the gta V main story out, time to shine again
-
There must be a costum script inside the map, feel free to contact me via skype for better communication ;p
-
No, man. I will fight back!
-
https://wiki.multitheftauto.com/wiki/On ... eCollision ?? for cars?? https://wiki.multitheftauto.com/wiki/On ... jectDamage ?? for objects??
-
No, sometimes I dream about cheese
-
You can move your map with this tool: http://mta.dzek.eu/mmove/
-
Hi, welcome to our forums. Can you use next time the lua tags? [ lua] [/lua ] local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) function createVehicleforPlayer(thePlayer, command, vehicleModel) local x,y,z = getElementPosition(thePlayer) -- get the position of the player local x = x + 5 -- add 5 units to the x position local createdVehicle = createVehicle(tonumber(vehicleModel) ,x,y,z) -- check if the return value was ''false'' if (createdVehicle == false) then -- if so, output a message to the chatbox, but only to this player outputChatBox("Failed to create vehicle." ,thePlayer) end end addCommandHandler("createvehicle", createVehicleForPlayer)
-
Hahahaha, fail.... Thanks for helping me, I guess that I didn't payed attention yesterday, I was tired ;P
-
Did you saved the map before placing objects (it's a kind of a security). If not, save it as a map and then continue mapping, if this "saving menu" still appears then contact me at skype, i'll help you further in your native langaunge ofc. Kindly regards, Danny
-
No problem, and have fun on your server!
-
Hi there fellow reader, Today I was just just scripting arround and then I needed fetchRemote on the server-side to send images from a url to the client's pc without caching it on the hard-drive, now the example on the wiki (https://wiki.multitheftauto.com/wiki/FetchRemote) uses "triggerClientEvent", now I just added just in case "triggerLatentClientEvent", but now it didn't loaded the image, nor outputted something on the client-side, and there are no debug-script errors. Heres my code server-side: addEvent ( "downloadImage", true ) addEventHandler( "downloadImage", root, function (player) fetchRemote ( "http://png-5.findicons.com/files/icons/1790/large_android/512/android_sh.png", sendPixels, "", false, player ) outputChatBox ( "derp" ) -- it outputted derp end) function sendPixels( responseData, errno, playerToReceive ) outputChatBox ( "derpfunc" ) -- this was too succesfully outputted if errno == 0 then outputChatBox ( "derp2" ) -- this was too succesfully outputted triggerLatentClientEvent ( playerToReceive, "sendPixels", 50000,false,playerToReceive,responseData ) end end client side: myTextures = {} downloadedimgs = 0 addEvent( "sendPixels", true ) addEventHandler( "sendPixels", resourceRoot, function( pixels) outputChatBox ( "client" ) -- doesn't output downloadedimgs = downloadedimgs + 1 if myTextures[downloadedimgs] then destroyElement( myTextures[downloadedimgs] ) end myTextures[downloadedimgs] = dxCreateTexture( pixels ) end ) -- this is my usage of sending a request to the server function startImageDownload() triggerServerEvent ( "downloadImage", localPlayer, localPlayer ) end So is there a way to make it work without caching the image to the clients pc and if possible using triggerLatenClientEvent? Kindly regards, Danny
-
In race_server, search for "timelimit" then force it everytime to set it to "none" with a variable. function cacheMapOptions(map) g_MapOptions = {} g_MapOptions.duration = map.duration and tonumber(map.duration) > 0 and map.duration*1000 or g_GameOptions.defaultduration if g_MapOptions.duration > 86400000 then g_MapOptions.duration = 86400000 end g_MapOptions.respawn = 'none' if g_MapOptions.respawn ~= 'timelimit' and g_MapOptions.respawn ~= 'none' then g_MapOptions.respawn = 'none' -- I setted it here here end g_MapOptions.respawntime = g_MapOptions.respawn == 'timelimit' and (map.respawntime and map.respawntime*1000 or g_GameOptions.defaultrespawntime) g_MapOptions.time = map.time or '12:00' g_MapOptions.weather = map.weather or 0 --etc...
-
GUIEditor_Window = {} GUIEditor_Button = {} addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window[1] = guiCreateWindow(351,281,522,509,"Missions",false) guiSetVisible (GUIEditor_Window[1], false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(23,43,132,37,"Mission 1",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(193,43,132,37,"Mission 2",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(368,43,126,37,"Mission 3",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(194,471,139,26,"Close",false,GUIEditor_Window[1]) --- handlers addEventHandler ("onClientGUIClick", GUIEditor_Button[4], hideIt, false) end ) function showIt () guiSetVisible (GUIEditor_Window[1], true) showCursor ( true ) end addEvent ("ShowMarkerNow", true) addEventHandler ("ShowMarkerNow", getRootElement(), showIt) function hideIt (button, state) if (button == "left" and state == "up") then guiSetVisible (GUIEditor_Window[1], false) showCursor ( false ) end end Your table was wrong ;p
-
Check out this text to speech: http://www.acapela-group.com/text-to-sp ... -demo.html I'll check later for your 2 links if i'm coming back from school.
-
local godTable = {} function godmodeCheck(dataName,oldValue) if getElementType(source) == "player" and dataName == "blood" then if godTable[source] == true then local newValue = getElementData(source,dataName) setElementData( source, dataName, oldValue ) end end end addEventHandler("onElementDataChange",root,godmodeCheck) function godModeOn(player) local theAccountName = getAccountName (getPlayerAccount (player)) if (isObjectInACLGroup ("user." .. theAccountName, aclGetGroup ("Admin"))) then godTable[player] = true end end addCommandHandler("godon", godModeOn) function godModeOff(player) local theAccountName = getAccountName (getPlayerAccount (player)) if (isObjectInACLGroup ("user." .. theAccountName, aclGetGroup ("Admin"))) then godTable[player] = false end end addCommandHandler("godoff", godModeOff) addEventHandler ( "onPlayerJoin", root, function () godTable[source] = false end) addEventHandler ( "onResourceStart", resourceRoot, function () for _,player in ipairs(getElementsByType ( "player" ) ) do godTable[player] = false end end)
-
Awesome, keep on going the 3D modelling! I'm glad I could help.
-
You are more than welcome, I'm glad I was able to help.
