Jump to content

Portside

Members
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Portside

  1. Hey. I'd like to add my own custom interiors but the thing is, when I add them and make an interior IG it's a blank space. The interior isn't there, I've already converted the file using the SA:MP object converter, but still isn't working. Help?!
  2. Hi, I was just wondering is it possible to import any of the other GTA maps into MTA:SA? And if so, is there a way that other players can download the map as a resource?
  3. Hi, I'd like to find out a little more about texture adding and stuff along the lines of that. Is there anyway that you can add pictures onto Billboards as such? Thanks in advance.
  4. Amazingly I'd love to get lessons for scripting in general haha
  5. Urhm... that's the thing, I did lol
  6. Thanks! Mind adding a timer to that? aha
  7. -- objID, X, Y, Z 980, 1579, 713.599609375, 12.5 --Closed State 1579, 713.599609375, 7 --Open State Faction: The Montana Family
  8. I don't quite understand how to fill it out
  9. Wow... I've a lot of gate problems. I got this off a friend, I just done what it told me; local objectID = 980 --Place the object ID here local originalX,originalY,originalZ = 1579, 713.599609375, 12.5 --Place the coords of the gate here local rotationX,rotationY,rotationZ = 0,0,90 --Place the rotations of the gate here local factionName = "The Montana Family" --Put the EXACT faction name here, including capitals and special features local moveX,moveY,moveZ = 2000, 1579, 713.599609375, 7 --Place the coords to move the gate to here local moveRotX,moveRotY,moveRotZ = 0,0,0 --Place the rotations for the gate here (if you do not want it to rotate, put: 0,0,0) local timeToMoveGate = 3000 --Put the time it takes to open/close the gate here (in milliseconds) local timeToStayOpen = 4000 --Put the time that the gate stays open until it closes (in milliseconds) local command = "gate" --Put the command name you want to use here local distanceFromGate = 15 --Put the minimal distance from the gate to open it here --####################################################### --#### DO NOT EDIT ANYTHING BELOW HERE (BITCH) #### --####################################################### local gateState = false --Leave this at false, you don't need to edit this thisGate = createObject(objectID,originalX,originalY,originalZ,rotationX,rotationY,rotationZ) --Creates the object and names it 'thisGate' exports.pool:allocateElement(thisGate) --Let's just leave this here, okay? local function resetGateState() --Function to reset the state of the gate gateState = false --Sets the gate state to closed end local function closeThisGate() --Function to close the gate moveObject(thisGate,timeToMoveGate,originalX,originalY,originalZ,0 - moveRotX,0 - moveRotY,0 - moveRotZ) --Moves the gate back to the original position setTimer(resetGateState,timeToMoveGate) --Resets the state of the gate after the gate has moved back to it's original position end local function useGate(thePlayer, commandName) --Function that triggers the gate local posX,posY,posZ = getElementPosition(thePlayer) --Gets the position of the gate local distance = getDistanceBetweenPoints3D(originalX,originalY,originalZ,posX,posY,posZ) --Gets the distance between the player and the original position of the gate local team = getPlayerTeam(thePlayer) --Gets the team from the player if(distance <= distanceFromGate and gateState == false and team == getTeamFromName(factionName)) then --Checks if the player is near enough and if the gate is not open/opening/closing and checks the faction name gateState = true --Sets the gate to open/opening/closing moveObject(thisGate,timeToMoveGate,moveX,moveY,moveZ,moveRotX,moveRotY,moveRotZ) --Moves the object to the location that is wanted setTimer(closeThisGate,timeToMoveGate + timeToStayOpen,1) --Sets the times to close the gate again end end addCommandHandler(command, useGate) The gate disappears once I type in the command; /gate. Not quite sure what's wrong with it.
  10. Thanks for all your help, that was bugging me lol. Much appreciated!
  11. One slight problem though, I need the; outputChatBox to activate when the gate is coming back up.
  12. What do I need to remove from the script?
  13. I just can't get my head around it at all! Is there anyway that I can use one command for this gate. For example, using the command /go to open the gate, can a timer be set on the script so it will close after so many seconds? Here's what I have: gate = createObject(980, 1579, 713.599609375, 12.5, 0, 0, 90) -- objID, X, Y, Z, Rotation X, Y, Z function gateOpen(source) local x, y, z = getElementPosition(source) local x1, y1, z1 = getElementPosition(gate) if getDistanceBetweenPoints3D(x, y, z, x1, y1, z1) <= 10 then moveObject(gate, 2000, 1579, 713.599609375, 7, 0, 0, 0) --moves the gate to the open position. time, X, Y, Z, Rotation X, Y, Z outputChatBox("Montana's Gate Is Now Open!", thePlayer, 0, 255, 0) end end addCommandHandler("go1", gateOpen)--Command /go1 to open gate function gateClose(source) local x, y, z = getElementPosition(source) local x1, y1, z1 = getElementPosition(gate) if getDistanceBetweenPoints3D(x, y, z, x1, y1, z1) <= 10 then moveObject(gate, 2000, 1579, 713.599609375, 12.5 , 0, 0, 0 ) --returns the gate to its starting position. X, Y, Z, Rotation X, Y, Z outputChatBox("Montana's Gate Is Now Closed!", thePlayer, 255, 0, 0) end end addCommandHandler("gc1", gateClose)--Command /gc1 to close gate Thanks in advance!
  14. Hey. I've seen on a lot of servers with the side of the vehicle has cool text or pictures that replace the original. For example, on the LSPD cruisers up along the side where it says 'LSPD' some servers have it changed to maybe like; LAPD or something like that. I'm wondering how this is done, anyone know? Thanks in advance!
  15. It's working properly now, thanks haha.
  16. And I don't have to change nothing?
  17. Ciber, do I just put that in as it is?
  18. Hey! Thanks a lot for your help, I'll let you know if it works!
  19. colShapes, thanks. I'll try that!
  20. Hi, I need help with adding custom interiors to my RP server. So when I've created my custom interior, I add it to the s_interior_map and then update my meta file. How I got the .lua: I go to where I saved the resource, in there it includes: resource_name.map mapEditorScriptingExtension_c mapEditorScriptingExtension_s meta I right-click the .map file and edit with notepad++ then save the file as a .lua And here's how it looks; <map edf:definitions="editor_main"> <object id="object (mafCasLoadbay01) (1)" interior="18" alpha="255" doublesided="false" model="14577" scale="1" dimension="0" posX="25.5" posY="-104.6" posZ="1330.5" rotX="0" rotY="0" rotZ="0"></object> <object id="object (container_door) (1)" interior="18" alpha="255" doublesided="false" model="3062" scale="1" dimension="0" posX="53.1" posY="-98.4" posZ="1324.90002" rotX="0" rotY="0" rotZ="0"></object> <object id="object (kmb_shutter) (1)" interior="18" alpha="255" doublesided="false" model="3055" scale="1" dimension="0" posX="34.4" posY="-89.1" posZ="1325.69995" rotX="0" rotY="0" rotZ="270"></object> <object id="object (MED_OFFICE7_DESK_1) (1)" interior="18" alpha="255" doublesided="false" model="2207" scale="1" dimension="0" posX="55.4" posY="-86.3" posZ="1323.59998" rotX="0" rotY="0" rotZ="312"></object> <object id="object (WORK_LAMP1) (1)" interior="18" alpha="255" doublesided="false" model="2196" scale="1" dimension="0" posX="56" posY="-86.1" posZ="1324.40002" rotX="0" rotY="0" rotZ="0"></object> <object id="object (PC_1) (1)" interior="18" alpha="255" doublesided="false" model="2190" scale="1" dimension="0" posX="56.1" posY="-87.2" posZ="1324.30005" rotX="0" rotY="0" rotZ="130"></object> <object id="object (swivelchair_A) (1)" interior="18" alpha="255" doublesided="false" model="1671" scale="1" dimension="0" posX="57" posY="-86.2" posZ="1324" rotX="0" rotY="0" rotZ="308"></object> <object id="object (acwinch1b_SFS01) (1)" interior="18" alpha="255" doublesided="false" model="11406" scale="1" dimension="0" posX="50.8" posY="-90.3" posZ="1326.80005" rotX="0" rotY="0" rotZ="0"></object> <object id="object (acwinch1b_SFS01) (2)" interior="18" alpha="255" doublesided="false" model="11406" scale="1" dimension="0" posX="47.8" posY="-90.4" posZ="1326.80005" rotX="0" rotY="0" rotZ="0"></object> <object id="object (acwinch1b_SFS01) (3)" interior="18" alpha="255" doublesided="false" model="11406" scale="1" dimension="0" posX="44.6" posY="-90.4" posZ="1326.80005" rotX="0" rotY="0" rotZ="0"></object> <object id="object (dead_tied_cop) (1)" interior="18" alpha="255" doublesided="false" model="3092" scale="1" dimension="0" posX="50.7" posY="-90.3" posZ="1325.09998" rotX="0" rotY="0" rotZ="0"></object> <object id="object (CJ_MEAT_BAG_2) (1)" interior="18" alpha="255" doublesided="false" model="2805" scale="1" dimension="0" posX="47.75" posY="-90.4" posZ="1325.09998" rotX="0" rotY="0" rotZ="270"></object> <object id="object (acwinch1b_SFS01) (4)" interior="18" alpha="255" doublesided="false" model="11406" scale="1" dimension="0" posX="41" posY="-90.4" posZ="1326.80005" rotX="0" rotY="0" rotZ="0"></object> <object id="object (des_blackbags) (2)" interior="18" alpha="255" doublesided="false" model="16444" scale="1" dimension="0" posX="36.6" posY="-82.3" posZ="1323.69995" rotX="0" rotY="0" rotZ="0"></object> </map> But when I try to make a interior IG (/makeinterior) and go the the interior ID (135) it just brings me to the interiorworld without the objects showing. For some reason I think the file needs to be converted to something like this: createobject(objID, x, y, z) Please help, thanks in advance!
  21. Still nada... Just forget about it, I think it just doesn't like me lol
×
×
  • Create New...