Nighttrain Posted March 11, 2015 Share Posted March 11, 2015 hello guys i use the AC-vehicles resources (link down here) https://community.multitheftauto.com/in ... ls&id=8338 but now is the point, i got the Groups etc but still i cant spawn cars i use the Police LUA from albonius there what is connected to the AC-vehicles can someone help me to fix this problem? Link to comment
Mr_Moose Posted March 11, 2015 Share Posted March 11, 2015 The idea is relatively simple and has been the same ever since the beginning, look into the file "veh-data.lua". In there you'll find a table at the bottom with a layout like this: vehRights1 = { -- occupation, team, wanted-level [1]={ "", "", 50 }, ... } Where the first value is "occupation", assigned by element data like this: setElementData(thePlayer, "Occupation", "value") Team is a standard team object which has to be defined and setup properly as well. The current version is 2.2-beta but on the community it's 1.4, I haven't looked deeper into that version in many months but I do know the later versions will use the built in wanted level to check for that value, otherwise the value named wanted level in the table must be set as element data as well. The key for that is "Wanted". All I can suggest is to edit the part where all the checks are performed, or wait for the 2.2 release of GTW-RPG as the upgraded version of this resource will be included there. Same with the police and wanted level system as none of them communicate properly with each others in versions below 2.0. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now