Jump to content

XxCozzaxX

Members
  • Posts

    99
  • Joined

  • Last visited

Everything posted by XxCozzaxX

  1. 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?
  2. Lol, so your trying to tell me its not possible to put a player in a vehicle and make him drive? Bull****
  3. 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?
  4. You sure the script is client-side? Server-Side... Should it be client side?
  5. 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)
  6. Andromada version with non-explosive barrels (untested):
  7. Thanks Oh, and how do i make it detect when it hits the floor?
  8. XxCozzaxX

    keyState

    Its ok, i dont need to do it now.
  9. Probably just a little bit, my server is 4GB DDR3 Ram, Core 2 Quad 3Ghz, Hosting 1 MTA server
  10. 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:
  11. XxCozzaxX

    keyState

    How do i make the keystate so that if you hold down the button it does what i need it to do instead of pressing it 200 times for it to do what i want?
  12. XxCozzaxX

    Objects

    No worries - i've done it setTimer ( destroyElement, 6000, 1, pot ) setTimer ( destroyElement, 6000, 1, redbarrelobject )
  13. XxCozzaxX

    Objects

    Thats awesome, thanks, but now i have 1 problem - the objects are respawning after they blow up. Do i set a timer and destroy the element?
  14. we already did? look few posts up I know, but it doesnt work for me - the billboard doesnt change.
  15. 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.
  16. XxCozzaxX

    Objects

    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"?
  17. 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!
  18. XxCozzaxX

    playsound

    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?
  19. 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?
  20. 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?
  21. XxCozzaxX

    Model_ID's

    How do i get the model id? I understand for a billboard it is 7300 but how do you know/get this information?
  22. 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!
  23. 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?
  24. Thanks mate, i will try it.
  25. I am lost, i got the meta.xml configured correctly, i got it loading, but the billboard just doesnt seem to change.
×
×
  • Create New...