 
        XxCozzaxX
Members- 
                Posts99
- 
                Joined
- 
                Last visited
Everything posted by XxCozzaxX
- 
	Ok, i edited the txd for him... heres the code i used.. but it doesnt replace it!! Meta: <meta> <script src="client.lua" type="client" /> <file src="models/joeswoman.txd" /> </meta> Script: function clientsetup() --SKIN REPLACEMENTS local skin = engineLoadTXD ( "models/joeswoman.txd" ) --Joes woman engineImportTXD ( skin, 140 ) end addEventHandler("onClientResourceStart", getRootElement(), clientsetup) But it doesn't seem to work! Why doesnt this work and how do i fix it?
- 
	Lol, so your trying to tell me its not possible to put a player in a vehicle and make him drive? Bull****
- 
	Ok, so should this work? function driveveh ( )local x, y, z = getElementPosition( plr );local vehped = createPed( 0, x, y, z );local pedveh = createVehicle(400, x, y-4, z);warpPedIntoVehicle ( vehped, pedveh )setPedControlState (ped, "accelerate", true)endaddCommandHandler("drive", driveveh) Hmm, no it wont... so how do i make the client function work with the server function?
- 
	You sure the script is client-side? Server-Side... Should it be client side?
- 
	I tried to make my ped accelerate in a vehicle, but i get this error in my console: attempt to call global 'setPedControlState' (a nil value) The Code: ped = createPed( tonumber( id ), x, y, z ); local veh = createVehicle(400, x, y-4, z); warpPedIntoVehicle ( ped, veh ) setPedControlState (ped, "accelerate", true)
- 
	Andromada version with non-explosive barrels (untested):
- 
	Thanks Oh, and how do i make it detect when it hits the floor?
- 
	Probably just a little bit, my server is 4GB DDR3 Ram, Core 2 Quad 3Ghz, Hosting 1 MTA server
- 
	Well, here it is... the all new... cargobob bomber!!! (By XxCozzaxX and XxJoexX) Instructions: Run the resource, type /bomber to create the cargobob, press control to drop a redbarrel (bomb). EDIT: The barrels will be destroyed after 6 seconds to save there being barrels everywhere! Video:
- 
	we already did? look few posts up I know, but it doesnt work for me - the billboard doesnt change.
- 
	when i created around 100-150-200 (dont know how much) scripted bots, it didnt crashed the game. it crashed server. My server didnt crash (Hosted) but my game did.
- 
	Help me ? I have red barrels - and i want to drop them from my vehicle - I can make this work... except the objects dont move... When you place a red barrel, to make it move you have to push it, right? How do i make it so that if i create a red barrel, it drops by itself instead of needing to be "pushed"?
- 
	So your saying this should work? addEventHandler("onClientPlayerWasted", root, function() local sound = playSound("sounds/wasted.mp3") --Play Fix up look sharp-Dizzee Rascal.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end ) EDIT: Nope Your one will though!
- 
	I tried to use this function and failed - addEventHandler("onPlayerWasted", root, function() local sound = playSound("sounds/wasted.mp3") --Play Fix up look sharp-Dizzee Rascal.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end ) Why isnt it playing the sound when i die?
- 
	Ok, im failing at this, the model number i want to replace is 3110, and here the txd I want it to load when it starts up, and stay loaded. (it works fine on single player) Please could someone make me the resource?
- 
	Sorry for posting again, but when will this be out? Oh and OFFTOPIC: What's the ped limit? I made 150 peds and it crashed my game, is that just because there were so many in one place?
- 
	How do i get the model id? I understand for a billboard it is 7300 but how do you know/get this information?
- 
	to txd = engineLoadTXD("data/billbox.txd", 401 ) Lol thanks - stupid mistakes! EDIT: Still doesn't work, you don't think its because my server is linux do you? Maybe cases might be the problem or / or \ i will fiddle, but if you can see anything else, please don't hesitate to say so!
- 
	Ok, i must be doing something wrong, why doesnt this work? function replaceModel() txd = engineLoadTXD("[color=#FF0000]data/billboard.txd[/color]", 401 ) engineImportTXD(txd, 401) end [color=#FF0000]addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)[/color] addCommandHandler ( "billboard", replaceModel ) and the meta.xml: <meta> [color=#FF0000]<script src="billbox.lua" type="client"/>[/color] [color=#FF0000] <file src="data/billbox.txd" type="client"/>[/color] </meta> And yes, the file is in this folder: /mods/deathmatch/resources/billboard/data Any ideas why it shouldn't work?
- 
	Thanks mate, i will try it.
- 
	I am lost, i got the meta.xml configured correctly, i got it loading, but the billboard just doesnt seem to change.
