Jump to content

SpecT

Members
  • Posts

    656
  • Joined

  • Days Won

    9

Everything posted by SpecT

  1. You need to concatenate the table variable. local newmsg = {}
  2. It's shared function (you can use it client and server side). In the example it's server-sided. setElementPosition
  3. - Server side: function onEnableSkidmarks() local specialVehicle = nil for i,player in pairs(getElementsByType("player")) do if isPlayerLogged(player) and isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) local skidEnabled = getPlayerData(player,"skidmarksEnabled") if skidEnabled == true then specialVehicle = vehicle end end end if specialVehicle then triggerClientEvent( root,"handleSkidmarks", root,specialVehicle) end end - Client side: function handleSkidmarks(vehicle) local myShader, tec = dxCreateShader ( "data/shader/skidmark/skidmarks.fx" ) if vehicle then engineApplyShaderToWorldTexture ( myShader, "particleskid", vehicle) outputChatBox("Applying...") selectPreset(4) end end addEvent("handleSkidmarks",true) addEventHandler("handleSkidmarks",root,handleSkidmarks)
  4. That's what I have done. The problem is the applying of the shader. It doesn't seem to get applied to my vehicle's skid marks (and it should). I tried with debugging methods but everything is working just fine but the engineApplyShaderToWorldTexture won't apply it if I put the vehicle in the function arguments. Maybe the skid marks aren't connected with the vehicle... So what should I do now ?
  5. This is triggered from server (loop) to all the clients function handleSkidmarks(isEnabled) local vehicle = getPedOccupiedVehicle(getLocalPlayer()) myShader, tec = dxCreateShader ( "skidmark/skidmarks.fx" ) if isEnabled then engineApplyShaderToWorldTexture ( myShader, "particleskid", vehicle ) end selectPreset(4) end
  6. Could you explain how ? I tried by applying it to the vehicle but it doesn't seem to work.
  7. Hello people! I want to ask you a shader related question. Is it possible to set the rainbow skid marks shader just for car1? So in this case the other players will only see car1's rainbow skid marks but theirs will be the default ones. Thanks in advance!
  8. Contains an adfly link in the source code to download the real resource. URL: https://community.multitheftauto.com/in ... s&id=13372
  9. Hey guys, is it possible to unbind a key that was bound by other resource? For example a panel resource bound a function to the key "G". Can I somehow unbind that key "G" from another resource? I tried that several times but it looks like it doesn't work. Thanks in advance!
  10. Man please read my whole reply! I said that I figured it out. I fixed it by myself even tho it took me long time to think of a way. IT'S SOLVED!
  11. SpecT

    Gui Converter

    No, you can't. You need to re-write it in dx. And if it has gridlists, checkboxes, etc you will need DX Library.
  12. SpecT

    Help me URGENT

    Update your server to the latest stable build.
  13. That won't help me at all. Nevermind .. you didn't get what I meant. Its for race gamemode not freeroam. And its hard to explain so I forced myself to fix it. I have much more experience than you think... I know that I can play sounds from url like a year ago when I started scripting and now you are telling me that. Also that has nothing to do with the topic question. Whatever I figured it out by myself. It's sad that there are good scripters here but most of the time they dont help with such complicated cases. Maybe they are busy right now ... Anyway thanks for the reply! Admins, lock the topic!
  14. Hey guys! Soo I'm working on race:dm server and I got a good idea how to optimize the download size. Anyway I made a script that will remove the node where is the music file (mp3 or ogg) in the meta. But even tho it's removed the song keeps starting on map start until I delete it from my PC. Then I got the idea that I would delete it in client side but then it's started so it can't be deleted. Also the fileDelete in client side works only for the current resource and not for the others. So what ideas do you have guys? I really need to finish this cuz the hosting people are making me problems. Thanks in advance!!!
  15. 1. Has "script-delete" in description URL: https://community.multitheftauto.com/in ... s&id=12972 2. Pointless script which contains only meta.xml URL: https://community.multitheftauto.com/in ... s&id=12981 DONE
  16. That won't work. As MIKI785 said they are client-sided commands.
  17. Have you checked well the page IIYAMA gave you? Check the example! It's a script that will set all of the objects to the maximum view distance.
  18. Fake resource name and also it contains nothing ... just a lua file with facebook url. URL: https://community.multitheftauto.com/in ... s&id=12887 DONE
  19. I'm not really sure if I understood ... Use "/unbind =" to unbind all the binds on the button "=".
  20. SpecT

    Timer won't work

    1. You don't need to check if the player is not in the other ACL groups. Only a check for the group "Everyone" is enough. 2. When the timer triggers the function there is no source (player) 3. Because of 2. you need to loop thru all the online players Here you go: function not_staff() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Everyone" ) ) then setElementData( player, "Classicon", "Player" ); end end end setTimer(not_staff, 60, 0)
  21. SpecT

    lock

    getPedWeapon Good luck!
×
×
  • Create New...