-
Posts
877 -
Joined
-
Last visited
Everything posted by denny199
-
https://community.multitheftauto.com/in ... ls&id=6516 It's included raggdoll (gta iv style spinning in the air)
-
Derp: viewtopic.php?f=91&t=62816&p=597897#p597897 Did you made this actually?
-
It doesn't work because the table isn't loaded yet. Tested it serveral times and this will output "okay" after that i realised that the table isn't loaded yet derptest = "okey" myTable = { a = {test = "okTESTA"}, b = {test = derptest} } addCommandHandler ( "derp", function () outputChatBox ( myTable.b.test ) end) edit: as IIYAMA says (really can't typ that name).
-
Yes, you can! (I hope so ) since this is only a texture replacement example above the page, you should try it out and tell us if it works http://development.mtasa.com/wiki/Cloth ... ponent_IDs 30403-moto is an id.
-
Says the one who makes scripts for free
-
Show us your meta...
-
Whythehex are you using a table then, maybe because you got it from a another topic? So please, tell us why are you using usseless tables, since i tought, a table with one vehicleID, so weird. marker = createMarker(1949, -1705, 13,"corona",2,0,255,0) function markerHit(hitElement) if hitElement == localPlayer then local vh = getPedOccupiedVehicle ( hitElement ) setElementModel ( vh, 462) end end addEventHandler("onClientMarkerHit",marker,markerHit )
-
You can create a colshape at the location and then import the models when the player is in the colshape, and when it exits the colshape it will remove the model
-
https://community.multitheftauto.com/in ... ls&id=6859 If you really want to script it foryourself, then you should play arround with https://wiki.multitheftauto.com/wiki/DxGetTextWidth & https://wiki.multitheftauto.com/wiki/DxGetFontHeight
-
You guys are all failing.. For vehicle id's you can look right here: https://wiki.multitheftauto.com/wiki/Vehicle_IDs local vehiclesTable = {429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503} marker = createMarker(1949, -1705, 13,"corona",2,0,255,0) function markerHit(hitElement) if hitElement == localPlayer then local vh = getPedOccupiedVehicle ( hitElement ) local nm = tonumber (1,math.random( #vehiclesTable ) ) setElementModel ( vh, nm ) end end addEventHandler("onClientMarkerHit",marker,markerHit ) Tip: Also aligain the vehicle posZ one cordinate up for preventing the cars to get stuck into the ground.
-
on-topic: Add this to your script, it will replace the handling everytime when a player enters a vehicle. addEventHandler ("onVehicleEnter", root, function () handlingChange() end) off-topic: I started to laugh at this part of golanu21: local hp = getElementHealth(source) if hp == 0 then return end
-
I don't think so because it's supporting already a multiplayer mod :>, so sorry for the real crackers here, no online game :-[
-
You're welcome, and goodluck with your project
-
--Client --onClientGUIClick link = guiGetText (the edit box) triggerServerEvent("downloadFile", root, link, getLocalPlayer()) -- Server addEvent("downloadFile", true ) function fileDownload(link, sPlayer) fetchRemote ( link ,myCallback, "", false,sPlayer ) end addEventHandler( "downloadFile", getRootElement(), fileDownload ) function myCallback( responseData, errno, sPlayer ) if errno == 0 then triggerClientEvent( root, "onClientGotImage", resourceRoot, responseData, sPlayer ) end end -- client addEvent( "onClientGotImage", true ) addEventHandler( "onClientGotImage", resourceRoot, function(pixels, sPlayer) theShader = dxCreateShader("material/effect.fx", 0, 0, true, "ped" ) myTexture = dxCreateTexture( pixels ) if theShader and myTexture then dxSetShaderValue(theShader,"gTexture",myTexture) engineApplyShaderToWorldTexture(theShader,"army",sPlayer) end end ) I sended the player elemnt from the server to the client, so everyone will get the player element on the client side, because "localPlayer" isn't shared.
-
GTA V should be awesome, looking forward to the big map :3 and the missions
-
Thanks, gta VC FTW , I started playing GTA II on the PS1 and then gta III, after that gta VC and now SA, never played gta IV, since it sucks
-
So you are trying to win this game
-
So you are trying to make a multigamemode, if i'm right?
-
function removething( gridlist, name, row, col ) guiGridListRemoveRow ( gridlist, row ) local xmlFile = xmlLoadFile ( "files.xml" ) if xmlFile then local node = xmlFindChild( xmlFile, "filename", 0 ) local success = xmlNodeGetValue ( node ) if success then outputChatBox ( tostring ( success ) ) end end end I relooked at the wiki and then i saw the function xmlNodeGetValue.
-
addEventHandler ( "onClientResourceStart", resourceRoot, function() filesxml = xmlLoadFile ( "files.xml" ) if filesxml then aChild= xmlFindChild ( filesxml, "sav", 0 ) else aChild = xmlCreateFile ( "files.xml", "sav" ) xmlSaveFile ( aChild ) end end) function removething( gridlist, name, row, col ) guiGridListRemoveRow ( gridlist, row ) local filesxml = xmlLoadFile ( "files.xml" ) local aChild= xmlFindChild ( filesxml, "sav", 0 ) local delete = xmlFindChild ( aChild, "filename", 0 ) outputChatBox ( name .. " removed!" ) end I think this will work, I didn't tested it since I needed to go, because you used when the "save" didn't excisted a new file, after that it doesn't matter if you are reading it on the client side twice since the server isn't reading it, so the server won't lag. I'm btw sleepy, sorry for my faults.
-
What? English do you speak it? @Azooz-07 viewtopic.php?f=91&t=47897
-
Post your .xml file, if it's client side you can find it here: mtasa/mods/deathmatch/resources/resourcename
-
Well done, and no problem, are you also adding the single wall building, and a second floor? What are your plans after scripting the building editor?
