Jump to content

Dealman

Members
  • Posts

    1,421
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dealman

  1. Dealman

    GTA SA Nodes

    ...Nodes? I assume you mean for pedestrians? This does sound rather interesting, I personally haven't heard of this before. But it would surely be nice to take a look at!
  2. That freezes the vehicle, not the player. isElementFrozen(getPedOccupiedVehicle(localPlayer))
  3. A GUI Window is an element. Either way, you can use guiGetVisible to check whether it is visible or not. If this is not what you're looking for, I remain greatly confused as to what you're trying to do.
  4. Might I ask why you don't just make use of the event onElementDataChange. Having all of that checked every 5 seconds for every player is hardly a good way of doing it
  5. Change it to; function crColSp () for _,k in pairs (coorSphere) do colPay = createColSphere ( k[1], k[2], k[3], k[4] ) detect = createColSphere ( k[1], k[2], k[3], k[4]+120 ) end for _,k in pairs (cams_lamp) do createObject ( k[1], k[2], k[3], k[4], k[5], k[6], k[7] ) end end addEventHandler( 'onResourceStart', resourceRoot, crColSp ) Problem was the event handler was being run every time any resource started. Instead of only when itself started.
  6. Can't really help you without the code. That function requires a account element to check if it's a guest account or not. Whatever you referenced to is returning a boolean - true or false.
  7. 1 megabyte is 1 048 576 bytes.
  8. So long as it's an identical reference of what you're seeing, the FPS shouldn't take any big impacts. However if you're doing crazy stuff like a rear-view mirror as mentioned above. It will effectively need to cut your FPS in half since it switches back and forth.
  9. So insert outputs after every line, find out exactly where it stops working. This is how you're best off to do debugging when MTA fails to catch the error for you.
  10. Make sure the image is located in your resource's root folder. IE, "resources/MyResource/lvl61.png". Then add this to your meta file; <file src="lvl61.png"/> Edit: You beat me to it, glad you got it working
  11. Is screenWidth defined? Did you add the image to the meta.xml file?
  12. Use the event onVehicleRespawn, then use whatever way you seem fit to prevent it from being drivable.
  13. Also take note that Guest Accounts are also destroyed upon the player leaving the server. You'd be better off to check if the player is a guest, if true, save their Serial to either a XML or text file. You can also use SQL, which might be the preferred way by most. Read through said file every time a guest joins. There are of course other ways of doing this.
  14. Well if you want it to be a able to recognize whether a guest is new or not - I guess you could store their Serial, and then have it checked everytime someone decides to play as a guest. If the serial exists - regular player. If it does not exist - new player. isGuestAccount getPlayerSerial
  15. Look at the Wiki, it has all of the functions and events. getCursorPosition and onClientCursorMove Alternatively, you can use GUI Elements to help you - and just set their alpha to 0. This is what I do when I don't feel like building up an system to detect when the mouse is over some DX drawn stuff. This way you can utilize all of the GUI functions and events. Then you can use interpolateBetween to generate a smooth accordion effect.
  16. Because data stored using Element Data is deleted when the element is destroyed. A player is an element, when the player leaves - the element is destroyed. And the data gets deleted. For permanent data storage, use setAccountData and getAccountData. The way they work are pretty much the same, but you use account element instead of player element.
  17. Try concatenating stream_name and stream_title as well. Different radios use different tags, and some don't use it at all. Some also use meta tags as a way to advertise.
  18. Dealman

    Sound problem

    Remove the last quote; outputChatBox("[sOUND] "..playerName(player).." has started sound "..soundName)
  19. And because of that reason you believe you are entitled to the scripts and have the right to sell them? I can't tell whether you're truly that stupid or simply trying to be a troll. If it was deleted after 5 minutes of being leaked it's because it wasn't meant to be available to public. I truly wish the moderators on those forums where much more stricter about things like this, instead of simply locking the thread. But that's their decision after all, not mine.
  20. I think you're greatly misunderstanding how things actually work. I don't see why anyone would make a custom siren that streams an external file, instead of using a file within the resource. Which I think is the case. This is currently the only way custom sirens can be made within MTA. Server needs the resource for it to work. A client can't just slap a resource in their game folder and it will magically work on every server. For such effects, you'll have to edit the actual game files.
  21. I have absolutely no idea what you're on about. What you're talking about sounds like a resource, one that creates a sound element in 3D space and then attaches it to a vehicle. Yes, of course each client will then have to try to stream the designated file/URL.
  22. triggerEvent(attachobjectarmy) This is the problem. You're trying to trigger a function, not an event. And the event should be a string. Try to replace that with this; attachobjectarmy() Should trigger that function.
  23. Dealman

    GUI Thing

    >The source of this event is the player who joined. He's triggering the event on the source.
×
×
  • Create New...