xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Thanks Towncivilian, seems to work perfect now! Incase you still need/want it: http://pastebin.mtasa.com/981408784
-
Just put it in a server-side script and make sure it has access to startResource.
-
@Damien_Teh_Demon - You forgot to add the vehicle model, and it's not a very good method to use INT for x, y, z, rx, ry, and rz. You should use something like FLOAT.
-
Hi, everyone. So, I did this "manditory update" that MTA:SA had, but now whenever I join I server I get MAJOR, MAJOR lag. I get about 0-2 FPS. http://pastebin.mtasa.com/936390493
-
Stolen: https://community.multitheftauto.com/ind ... 693&vote=1 Original: https://community.multitheftauto.com/ind ... ils&id=588 DONE
-
No, you don't, but they're highly recommanded. You can browse your router settings (http://192.168.0.1) and see if you can find anything about automatic IP changing and see if you can disable it.
-
Well, besides Social's example, SAUR uses interpolateBetween to make the login have the bouncing effect. Here is an example, I took it from one of my codes and edited it a bit, but it should still work: local sx, sy = guiGetScreenSize ( ) local width, height = 600, 500 local point_start = { (sx/2-width/2), -height } local point_end = { (sx/2-width/2), (sy/2-height/2) } addEventHandler ( "onClientRender", root, function ( ) if not startTime then startTime = getTickCount ( ) end if not endTime then endTime = getTickCount ( ) + 3000 end local now = getTickCount() local elapsedTime = now - startTime local duration = endTime - startTime local progress = elapsedTime / duration x1, y1 = unpack ( point_start ) x2, y2 = unpack ( point_end ) local x, y, _ = interpolateBetween ( x1, y1, 0, x2, y2, 0, progress, "OutBounce" ) dxDrawRectangle ( x, y, width, height, tocolor ( 0, 0, 0, 150 ) ) end )
-
addCommandHandler ( "startall", function ( ) for i, v in pairs ( getResources ( ) ) do if ( getResourceState ( v ) ~= "running" ) then startResource ( v ) end end end )
-
Save player data in another file? internal2.db?
xXMADEXx replied to ronaldoguedess's topic in Scripting
Use an SQLIte database. dbConnect dbPoll dbQuery dbExec -
Save player data in another file? internal2.db?
xXMADEXx replied to ronaldoguedess's topic in Scripting
You can just use setAccountData. -
Simply use: onClientGUIClick -- event addEventHandler bindKey / unbindKey
-
You can simply just export the TXD file to a PNG with TXD Workshop, and then edit in a photo editing program and then re-import it with TXD Workshop.
-
freeroam/fr_client.lua line 1579 by default
-
Welcome, again.
-
local positions = { { x, y, z }, { x, y, z}, -- & so on } function getRandomCoordinates ( ) return unpack ( positions [ math.random ( #positions ) ] ) end
-
Like this? local positions = { { x, y, z }, { x, y, z}, -- & so on }
-
Try this: function DeathMatchMaps() local row, col = guiGridListGetSelectedItem ( World.gridlist[1] ) if ( row == -1 ) then return end local text = guiGridListGetItemText ( World.gridlist[1], row, col ) if ( text == "1200" ) then triggerServerEvent("DeathMatch1" , getLocalPlayer() ) outputChatBox("Deathmatch 1'ye warplandin!", 0, 255,0, false) elseif ( text == "DM2" ) then triggerServerEvent("DeathMatch1", getLocalPlayer()) outputChatBox("Deathmatch 2'ye warplandin!", 0, 255, 0, false) end end addEventHandler("onClientGUIClick", World.button[1], DeathMatchMaps)
-
use: setCameraTarget
-
post your code...
-
He wasn't saying you didn't know scripts, he was just saying he doesn't write scripts for free. The dxDrawText will update every-render, example: addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( tostring ( getElementData ( localPlayer, "Job" ) ), 0, 0, 0, 0 ) end ) In the code, for example, any time the "Job" data would change for localPlayer, it would automatically update the text.
-
You can use createMarker to create the light.
